Distributed computation offloading method based on computation-network collaboration in stochastic network

ABSTRACT

A distributed computation offloading method based on computation-network collaboration in a stochastic network is provided. The distributed computation offloading method includes: building a device revenue maximization problem model and a MEC server revenue maximization problem model based on a local computing model and an edge cloud computing model; building composite sets of scenarios for dwell time and waiting latency based on a random movement of a user and burst computation demands; compensating for a game strategy by using a posteriori recourse action and building a game-based stochastic programming model between the device and the MEC server; transforming a multi-stage stochastic regularization problem for both the device and the MEC server into a DEP problem by constructing a scenario tree, and solving the DEP problem to obtain an optimal task strategy for the offloading from the MEC server and an optimal offering strategy of the MEC server to the device.

The present application is the national phase of International Patent Application No. PCT/CN2021/128920, titled “DISTRIBUTED COMPUTATION OFFLOADING METHOD BASED ON COMPUTATION-NETWORK COLLABORATION IN STOCHASTIC NETWORK”, filed on Nov. 5, 2021, which claims priority to Chinese Patent Application No. 202111095551.7, titled “DISTRIBUTED COMPUTATION OFFLOADING METHOD BASED ON COMPUTATION-NETWORK COLLABORATION IN STOCHASTIC NETWORK”, filed on Sep. 17, 2021 with the Chinese Patent Office, both of which are incorporated herein by reference in their entireties.

FIELD

The present disclosure relates to the technical field of mobile communications, and in particular to a distributed computation offloading method based on computation-network collaboration in a stochastic network.

BACKGROUND

With the rapid development and integration of mobile Internet and Internet of Things, mobile devices (MDs) (such as smartphones, wearable devices, and automatic driving vehicles) and cloud-oriented applications (such as virtual reality (VR), augmented reality (AR), and online games) are widely used, driving computing power and storage resources to the edge of the network to reduce transmission delays and congestions. With the multi-access edge computing (MEC) technology, part or all of computing tasks of devices or applications may be offloaded to an edge-cloud server to enhance the user's service experience. In addition, in order to meet requirements of a next generation wireless communication networks, small base stations (SBSs) with low powers and short distances are arranged in coverage of macro base stations (MBSs) in the ultra-dense network (UDN), effectively improving network throughput and access capacity. As shown in FIG. 1 , MEC and UDN are integrated, so that the users can enjoy ubiquitous network computing services anywhere and anytime, thereby facilitating the continuity of task computing offload.

However, the actual UDN system supporting MEC has the following problems. (1) With the rapid growth of cloud-oriented devices, applications and data in the era of the Internet of Things, the conventional centralized optimization framework requires accurate information (such as traffic features, network loads and channel state information (CSI)) about system states, which is inefficient for the complex and time-varying UDN supporting MEC with many heterogeneous Internet of Things applications. (2) Due to random movement, mobile devices frequently switch between different wireless edge-cloud access points, increasing the cost of task re-offloading and resource reallocation and seriously reducing the computation offloading performance. According to the conventional technology, the following results are achieved. (1) Mobility aware and dynamic migration services for the internet of vehicles (referring to: I. Labriji, F. Meneghello, D. Cecchinato, S. Sesia, E. Perraud, E. C. Strinati and M. Rossi, “Mobility Aware and Dynamic Migration of MEC Services for the Internet of Vehicles,” IEEE Transactions on Network and Service Management, vol. 18, no. 1, pp. 570-584, March 2021) are achieved. According to the algorithm, by using an MEC server, dwell time is predicted and proportional computation offloading is performed. (2) Energy-efficient and delay-guaranteed workload distribution algorithm applied in IoT-Edge-Cloud computing systems (referring to: M. Guo, L. Li and Q. Guan, “Energy-Efficient and Delay-Guaranteed Workload Allocation in IoT-Edge-Cloud Computing Systems,” IEEE Access, vol. 7, pp. 78685-78697, 2019). According to the algorithm, there are many kinds of lightweight edge-cloud servers having different function features which cannot respond to sudden computation requirements quickly and timely, and there is an uncertain waiting delay for offloading a task in the server (including task queue, decompression, security analysis, and the like), which indicates that offloading and resource allocation decisions should consider a network edge (a communication factor) and should further consider a service edge (an actual available computing power factor), especially for the delay-sensitive applications. However, requirements for task offloading demands in stochastic and time-varying network environments are lacking in the conventional technology.

SUMMARY

In order to meet the growing requirements for large-scale Internet of Things applications in a stochastic and time-varying network environment, a distributed computation offloading method based on computation-network collaboration in a stochastic network is provided according to a first aspect of the present disclosure. The distributed computation offloading method may include:

-   -   establishing a local computing model and an edge-cloud computing         model based on differentiated service quality requirements, task         processing costs, and the type of a device in a UDN environment;     -   establishing, based on the local computing model and the         edge-cloud computing model, a device revenue maximization         problem model by using a Lyapunov optimization theory and a         minimum drift decreasing utility function at the device;     -   establishing, based on the local computing model and the edge         cloud computing model, a MEC server revenue maximization problem         model by using a maximum value theory at an MEC server;     -   respectively establishing, based on a random movement of a user         and a burst computation requirement, a composite scenario set         based on a dwell time period and a composite scenario set based         on a waiting delay;     -   performing compensation on a game strategy by using a posteriori         recourse action, and establishing a game-based stochastic         programming model for the device and the MEC server,         establishing a scenario tree to transform a multi-stage         stochastic programming problem of the device and the MEC server         to a DEP problem;     -   solving an optimization problem of the device and an         optimization problem of the MEC server based on a Lagrangian         multiplier and a KKT condition to obtain an optimal task         offloading strategy of the device to the MEC server and an         optimal quotation strategy of the MEC server to the device; and     -   in a case that each of the optimal task offloading strategy of         the device to the MEC server and the optimal quotation strategy         of the MEC server to the device meets a Stackelberg equilibrium         solution, offloading, by the device based on the optimal task         offloading strategy, a task to the MEC server.

In some embodiments, the establishing a device revenue maximization problem model includes:

${{\underset{{f_{i,L}(t)},{D_{i,k}(t)}}{\max}{Y_{b_{i}}(t)}} = {{V_{i} \cdot {U_{b_{i}}\left\lbrack {D_{i}(t)} \right\rbrack}} + {\sum\limits_{k \in {\{{L,M,S}\}}}{{Q_{i}(t)} \cdot {D_{i,k}(t)}}} - {{Q_{i}(t)} \cdot {A_{i}(t)}}}},$

-   -   and constraints include:         T _(i,L) ^(pt)(t)≤τ_(i) ^(d),         f _(i,L) ^(min) ≤f _(i,L)(t)≤f _(i,L) ^(max) ,t∈T,         0≤D _(i)(t)≤Q _(i)(t),t∈T, and

${= {{\lim\limits_{T\rightarrow{+ \infty}}{\sup\frac{1}{T}{\sum\limits_{t = 0}^{T - 1}{E\left\{ {Q_{i}(t)} \right\}}}}} \leq {+ \infty}}};$ where f_(i,L)(t) represents a CPU clock frequency set of an i-th device, D_(i,k)(t) represents an offloading task set in a time slot t, Y_(b) _(l) (t) represents a long-term revenue of the i-th device, V_(i) represents a non-negative control parameter in the Lyapunov optimization theory, D_(i,k)(t) represents an offloading task for an i-th mobile device, A_(i)(t) represents a task arriving at the i-th mobile device in the time slot t, T represents a time slot index and T={0, 1, . . . }, U_(b) _(i) [D_(i)(t)] represents a total revenue of the i-th device in the time slot t; k∈{L, M, S} represents a current task type, L represents a non-offloading task, M represents a task offloaded to a macro base station, S represents a task offloaded to a small base station; T_(l,L) ^(pt)(t) represents a time period in which a local server processes an offloaded task, τ_(i) ^(d) represents a maximum computation delay constraint of D_(i)(t), f_(i,L) ^(min) represents a minimum CPU clock frequency allocated for the i-th mobile device in the time slot t, f_(i,L)(t) represents a CPU clock frequency allocated for the i-th mobile device in the time slot t, f_(i,L) ^(max) represents a maximum CPU clock frequency allocated for the i-th mobile device in the time slot t, D_(i)(t) represents a task processing decision at a beginning of the time slot t, Q_(i)(t) represents a task queue backlog at the beginning of the time slot t, and Q_(i)(t) represents an average queue backlog.

In some embodiments, in a case that a task is offloaded to a macro base station, the MEC server revenue maximization problem model is expressed as:

${{\max\limits_{{p_{M}(t)},\beta_{i,l_{M}}}{Y_{s_{M}}(t)}} = {{u_{M}\left\lbrack {p_{M}(t)} \right\rbrack} - {\sum\limits_{\forall i}{e_{i,M}\left\lbrack {{D_{i,M}(t)},{T_{i,M}^{wt}(t)}} \right\rbrack}}}},$

-   -   and constraints include:         p _(i,M)(t)≥0,t∈T,         T _(i,M) ^(co)(t)≤τ_(i) ^(d) ,t∈T, and         β_(l) _(M) ^(min)≤β_(i,l) _(M) (t)≤β_(l) _(M) ^(max) ,t∈T;     -   where p_(M)(t) represents a pricing set of the macro base         station in a time slot t, β_(i,l) _(M) represents a computing         capacity set allocated to the macro base station, Y_(s) _(M) (t)         represents a revenue of the macro base station, u_(M)[p_(M)(t)]         represents a service utility of the macro base station,         e_(i,M)[D_(i,M)(t), T_(i,M) ^(wt)(t)] represents a task         computing energy consumption of the macro base station,         p_(i,M) (t) represents a payment cost of an i-th device in the         time slot t to the macro base station, T represents a time slot         index and T={0, 1, . . . }, T_(i,M) ^(co)(t) represents a total         computation offloading time period of the macro base station in         the time slot t, τ_(i) ^(d) represents a maximum computation         delay constraint of D_(i)(t), β_(l) _(M) ^(min) represents a         minimum frequency of each of CPU cores in the macro base         station, β_(i,l) _(M) (t) represents a frequency of an i-th CPU         core in the macro base station, and β_(l) _(M) ^(max) represents         a maximum frequency of each of the CPU cores in the macro base         station.

In some embodiments, in a case that a task is offloaded to a small base station, the MEC server revenue maximization problem model is expressed as:

${{\max\limits_{{p_{S}(t)},\beta_{i,l_{S}}}{Y_{s_{S}}(t)}} = {{u_{S}\left\lbrack {p_{S}(t)} \right\rbrack} - {\sum\limits_{\forall i}{e_{i,S}\left\lbrack {{D_{i,S}(t)},{T_{i,S}^{st}(t)},{T_{i,S}^{wt}(t)}} \right\rbrack}}}},$

-   -   and constraints include:         p _(i,S)(t)≥0,t∈T,         T _(i,S) ^(co)(t)≤τ_(i) ^(d) ,t∈T, and         β_(l) _(S) ^(min)≤β_(i,l) _(S) (t)≤β_(l) _(S) ^(max) ,t∈T;     -   where p_(S)(t) represents a pricing set of the small base         station in a time slot t, β_(i,l) _(M) represents a computing         capacity set allocated to the small base station, Y_(s) _(S) (t)         represents a revenue of the small base station, u_(S)[p_(S)(t)]         represents a service utility of the small base station,         e_(i,S)[D_(i,S)(t), T_(i,S) ^(st)(t), T_(i,S) ^(wt)(t)]         represents a task computing energy consumption of the small base         station, p_(i,S)(t) represents a payment cost of an i-th device         in the time slot t to the small base station, T represents a         time slot index and T={0, 1, . . . }, T_(i,S) ^(co)(t)         represents a total computation offloading time period of the         small base station in the time slot t, τ_(i) ^(d) represents a         maximum computation delay constraint of D_(i)(t), β_(l) _(S)         ^(min) represents a minimum frequency of each of CPU cores in         the small base station, β_(i,l) _(S) (t) represents a frequency         of an i-th CPU core in the small base station, and β_(l) _(S)         ^(max) represents a maximum frequency of each of the CPU cores         in the small base station.

In some embodiments, the establishing a composite scenario set based on a dwell time period and a composite scenario set based on a waiting delay includes:

-   -   in a case that a possible dwell time period and a possible         waiting time period of a mobile device in a small base station         are known, obtaining, based on a Cartesian product, a composite         scenario based on dwell time periods of all mobile devices and a         composite scenario based on waiting delays of all the mobile         devices, wherein a composite scenario set based on the dwell         time periods of all the mobile devices is expressed as:         Ω_(S)(t)=Ω_(S) ^(st)(t)*Ω_(S) ^(wt)(t),

${{\Omega_{S}^{st}(t)} = {{\prod\limits_{i = 1}^{m}{\Omega_{i,S}^{st}(t)}} = {{\Omega_{1,S}^{st}(t)}*\ldots*{\Omega_{m,S}^{st}(t)}}}},{and}$ ${{\Omega_{k}^{wt}(t)} = {{\prod\limits_{i = 1}^{m}{\Omega_{i,k}^{st}(t)}} = {{\Omega_{1,k}^{wt}(t)}*\ldots*{\Omega_{m,k}^{wt}(t)}}}};$

-   -   where m represents the number of the mobile devices, Ω_(i,S)         ^(st)(t) represent a composite scenario based on a dwell time         period of an i-th mobile device, and β_(i,k) ^(wt)(t) represents         a composite scenario based on a waiting delay of the i-th mobile         device.

In some embodiments, compensation is performed on the game strategy by using the posteriori recourse action, that is, a two-stage optimal programming model is adopted, parameters are obtained based on the device revenue maximization problem model and the MEC server revenue maximization problem model in a first stage, compensation is performed on the parameters obtained in the first stage by using the posteriori recourse action in a second stage, and the device revenue maximization problem model after the compensation performed by using the posterior recourse action is expressed as:

${{\max\limits_{{f_{i,L}(t)},{D_{i,k}(t)}}{Y_{b_{i}}(t)}} = {{V_{i}\left\{ {{u_{i}\left\lbrack {D_{i}(t)} \right\rbrack} - {s_{i}\left\lbrack {D_{i}(t)} \right\rbrack} - {E_{\Omega_{i,S}^{si}(t)}\left\{ {c_{i}\left( {{D_{i,t}(t)},\left. {T_{i,S}^{st}(t)} \middle| {{T_{i,S}^{st}(t)} \in {\Omega_{i,S}^{st}(t)}} \right.} \right)} \right\}} - {E_{\Omega_{i,S}^{st}(t)}\left\{ {e_{i,L}\left( {{D_{i,t}(t)},\left. {T_{i,S}^{st}(t)} \middle| {{T_{i,S}^{st}(t)} \in {\Omega_{i,S}^{st}(t)}} \right.} \right)} \right\}}} \right\}} + {\sum\limits_{k \in {\{{L,M,S}\}}}{{Q_{i}(t)}{D_{i,k}(t)}}} - {{Q_{i}(t)}{A_{i}(t)}}}},$

-   -   and constraints include:         T _(i,L) ^(pt)(t)≤τ_(i) ^(d),         f _(i,L) ^(min) ≤f _(i,L)(t)≤f _(i,L) ^(max) ,t∈T,         0≤D _(i)(t)≤Q _(i)(t),t∈T, and

${= {{\lim\limits_{T\rightarrow{+ \infty}}{\sup\frac{1}{T}{\sum\limits_{t = 0}^{T - 1}{E\left\{ {Q_{i}(t)} \right\}}}}} \leq {+ \infty}}};$

-   -   in a case that a task is offloaded to a small base station, the         MEC server revenue maximization problem model after the         compensation performed by using the posterior recourse action is         expressed as:

${{\max\limits_{{p_{S}(t)},{\beta_{i,l_{S}}(t)}}{Y_{s_{S}}(t)}} = {{u_{S}\left\lbrack {p_{S}(t)} \right\rbrack} - {E_{\Omega_{S}(t)}\left\lbrack {R\left( {{\beta_{i,l_{S}}(t)},{\Omega_{S}(t)}} \right)} \right\rbrack}}},$

-   -   and constraints include:         p _(i,S)(t)≥0,t∈T,         T _(i,S) ^(co)(t)≤τ_(i) ^(d) ,t∈T, and         β_(l) _(S) ^(min)≤β_(i,l) _(S) (t)≤β_(l) _(S) ^(max) ,t∈T;     -   where f_(i,L)(t) represents a CPU clock frequency set of an i-th         device, D_(i,k)(t) represents an offloading task set, Y_(b)         _(i) (t) represents a long-term revenue of the i-th device,         V_(i) represents a non-negative control parameter in the         Lyapunov optimization theory, u_(i)[D_(i)(t)] represents a         utility of the i-th device, s_(i)[D_(i)(t)] represents a         computation service cost of the i-th device, E_(Ω) _(i,S) _(st)         _((t))({c_(i)(D_(i,t)(t), T_(i,S) ^(st)(t)|T_(i,S)         ^(st)(t)∈Ω_(i,S) ^(st)(t))} represents an average communication         cost in a composite scenario Ω_(i,S) ^(st)(t), E_(Ω) _(i,S)         _(st) _((t))({e_(i,L)(D_(i,t)(t), T_(i,S) ^(st)(t)|T_(i,S)         ^(st)(t)∈Ω_(i,S) ^(st)(t))} represents an average energy         consumption cost in the composite scenario Ω_(i,S) ^(st)(t),         D_(i,k)(t) represents an offloading task for the i-th mobile         device, A_(i)(t) represents a task arriving at the i-th mobile         device in a time slot t, T represents a time slot index and         T={0, 1, . . . }, U_(b) _(i) [D_(i)(t)] represents a total         revenue of the i-th device in the time slot t, k∈{L, M, S}         represents a current task offloading position, L indicates that         a task is offloaded locally, M indicates that a task is         offloaded to a macro base station, S indicates that a task is         offloaded to a small base station, T_(i,L) ^(pt)(t) represents a         time period in which a local server processes an of loaded task,         τ_(i) ^(d) represents a maximum computation delay constraint of         D_(i)(t), f_(i,L) ^(min) represents a minimum CPU clock         frequency allocated for the i-th mobile device in the time slot         t, f_(i,L)(t) represents a CPU clock frequency allocated for the         i-th mobile device in the time slot t, f_(i,L) ^(max) represents         a maximum CPU clock frequency allocated for the i-th mobile         device in the time slot t, D_(i)(t) represents a task processing         decision at a beginning of the time slot t, Q_(i)(t) represents         a task queue backlog at the beginning of the time slot t,         Q_(i)(t) represents an average queue backlog, Y_(s) _(S) (t)         represents a revenue of a small base station, u_(S)[p_(S)(t)]         represents a service utility of the small base station, E_(Ω)         _(S(t)) [R(β_(i,l) _(S) (t), Ω_(S)(t))] represents an average         recourse in a composite scenario Ω_(i,S) ^(st)(t), p_(i,M)(t)         represents a payment cost of the i-th device to the macro base         station in the time slot t, T represents a time slot index and         T={0, 1, . . . }, T_(i,M) ^(co)(t) represents a total         computation offloading time period of the macro base station in         the time slot t, τ_(i) ^(d) represents a maximum computation         delay constraint of D_(i)(t), β_(l) _(M) ^(min) represents a         minimum frequency of each of CPU cores in the macro base         station, β_(i,l) _(M) (t) represents a frequency of an i-th CPU         core in the macro base station, and β_(l) _(M) ^(max) represents         a maximum frequency of each of the CPU cores in the macro base         station.

In some embodiments, a recourse function R(β_(i,l) _(S) (t), Ω_(S)(t)) is expressed as:

${R\left( {{\beta_{i,l_{S}}(t)},{\Omega_{S}(t)}} \right)} = {\sum\limits_{\forall i}{e_{i,S}\left\lbrack {{D_{i,S}(t)},{T_{i,S}^{st}\left( {\omega_{S}(t)} \right)},{T_{i,S}^{wt}\left( {\omega_{s}(t)} \right)}} \right\rbrack}}$

-   -   where e_(i,S)[D_(i,S)(t), T_(i,S) ^(st)(Ω_(S)(t)), T_(i,S)         ^(wt)(ω_(S)(t))] represents an energy consumption cost of the         small base station.

In some embodiments, a task offloading process is divided into H sub-time slots, a distributed programming model with 2H stages is obtained, and the device revenue maximization problem model is expressed as:

${\max\limits_{{f_{i,L}(\tau_{h})},{D_{i,k}(\tau_{h})}}Y_{b_{i}}\left\{ {{D_{i}\left( \tau_{1} \right)},\ldots,\ {D_{i}\left( \tau_{H} \right)},{f_{i,L}\left( \tau_{1} \right)},\ldots,{f_{i,L}\left( \tau_{H} \right)}} \right\}} = {{V_{i}\left\{ {{u_{i}\left\lbrack {D_{i}\left( \tau_{1} \right)} \right\rbrack} - {c_{i}\left\lbrack {D_{i}\left( \tau_{1} \right)} \right\rbrack} - {e_{i,L}\left\lbrack {D_{i}\left( \tau_{1} \right)} \right\rbrack} - {s_{i}\left\lbrack {D_{i}\left( \tau_{1} \right)} \right\rbrack} + {E_{{\xi_{i,S}^{st}(\tau_{h})}❘{\xi_{i,S}^{st}(\tau_{h - 1})}}{\sum\limits_{h = 2}^{H}\left\{ {{u_{i}\left\lbrack {D_{i}\left( \tau_{h} \right)} \right\rbrack} - {s_{i}\left\lbrack {D_{i}\left( \tau_{h} \right)} \right\rbrack}} \right\}}} - {E_{{\xi_{i,S}^{st}(\tau_{h})}❘{\xi_{i,S}^{st}(\tau_{h - 1})}}{\sum\limits_{h = 2}^{H}{c_{i}\left\lbrack {{D_{i}\left( \tau_{h} \right)},{T_{i,S}^{st}\left( \tau_{h} \right)}} \right\rbrack}}} - {E_{{\xi_{i,S}^{st}(\tau_{h})}|{\xi_{i,S}^{st}(\tau_{h - 1})}}{\sum\limits_{h = 2}^{H}{e_{i,L}\left\lbrack {{D_{i}\left( \tau_{h} \right)},{T_{i,S}^{st}\left( \tau_{h} \right)}} \right\rbrack}}}} \right\}} + {{Q_{i}\left( \tau_{1} \right)}{D_{i}\left( \tau_{1} \right)}} + {E_{{\xi_{i,S}^{st}(\tau_{h})}|{\xi_{i,S}^{st}(\tau_{h - 1})}}{\sum\limits_{h = 2}^{H}{{Q_{i}\left( \tau_{h} \right)}{D_{j}\left( \tau_{h} \right)}}}} - {{Q_{i}\left( \tau_{1} \right)}{A_{i}\left( \tau_{1} \right)}} - {E_{{\xi_{i,S}^{st}(\tau_{h})}|{\xi_{i,S}^{st}(\tau_{h - 1})}}{\sum\limits_{h = 2}^{H}{{Q_{i}\left( \tau_{h} \right)}{A_{i}\left( \tau_{h} \right)}}}}}$

-   -   and constraints include:         f _(i,L) ^(min) ≤f _(i,L)(τ_(h))≤f _(i,L) ^(max),τ_(h) ∈H,

${{\sum\limits_{h = 1}^{H}{D_{i}\left( \tau_{h} \right)}} = {D_{i}\left( \tau_{h} \right)}},{\tau_{h} \in H},{and}$ ${0 \leq {\sum\limits_{h = 1}^{H}{D_{i}\left( \tau_{h} \right)}} \leq {Q_{i}\left( \tau_{h} \right)}},{{\tau_{h} \in H};}$

-   -   in the case that the task is offloaded to the small base         station, the MEC server revenue maximization problem model is         expressed as:

${\max\limits_{{p_{i,S}(\tau_{h})},{\beta_{i,S}(\tau_{h})}}Y_{s_{S}}\left\{ {{p_{i,S}\left( \tau_{1} \right)},\ \ldots,{p_{i,S}\left( \tau_{H} \right)},\ {\beta_{i,S}\left( \tau_{1} \right)},\ldots,\ {\beta_{i,S}\left( \tau_{H} \right)}} \right\}} = {{u_{S}\left\lbrack {p_{S}\left( \tau_{1} \right)} \right\rbrack} - {\underset{i = 1}{\sum\limits^{m}}\left\{ {{e_{i,S}\left\lbrack {D_{i,S}\left( \tau_{1} \right)} \right\rbrack} + {p_{i,S}^{f}\left\lbrack {D_{i,S}\left( \tau_{1} \right)} \right\rbrack}} \right\}} + {E_{{\xi_{S}(\tau_{h})}|_{{\xi_{S}(\tau_{h - 1})}❘}}{\sum\limits_{h = 2}^{H}{u_{S}\left\lbrack {p_{S}\left( \tau_{h} \right)} \right\rbrack}}} - {E_{{\xi_{S}(\tau_{h})}|_{\xi_{S}(\tau_{h - 1})}}{\sum\limits_{i = 1}^{m}{\sum\limits_{h = 2}^{H}{e_{i,S}\left\lbrack {{D_{i,S}\left( \tau_{h} \right)},{T_{i,S}^{st}\left( \tau_{h} \right)},{T_{i.S}^{wt}\left( \tau_{h} \right)}} \right\rbrack}}}}}$

-   -   and constraints include:         p _(i,S)(τ_(h))≥0,τ_(h) ∈H,

${{E_{\xi_{s}}\left\{ {\sum\limits_{h = 1}^{H}\left\lbrack {{T_{i,S}^{up}\left( \tau_{h} \right)} + {T_{i,S}^{wt}\left( \tau_{h} \right)} + {\sum\limits_{l_{k} \in L_{k}}\frac{{D_{i}\left( \tau_{h} \right)}\gamma_{i}}{\beta_{i,l_{k}}}}} \right.} \right\}} \leq \tau_{i}^{d}},$ β_(l) _(S) ^(min)≤β_(i,l) _(S) (τ_(h))≤β_(l) _(S) ^(max),τ_(h) ∈H;

-   -   where f_(i,L)(τ_(h)) represents a CPU clock frequency set of an         i-th device in a sub-time slot τ_(h), D_(i,k)(τ_(h)) represents         a offloading task set of an i-th mobile device in the sub-time         slot τ_(h), u_(i)[D_(i)(τ₁)] represents a utility of the i-th         mobile device in a root node, c_(i)[D_(i)(τ₁)] represents a         communication cost of the i-th mobile device in the root node,         e_(i,L)[D_(i)(τ₁)] represents an energy consumption cost of the         i-th mobile device in the root node, s_(i)[D_(i)(τ₁)] represents         a computation service cost of the i-th mobile device in the root         node, T_(i,S) ^(st)(τ_(h)) represents a dwell time period of the         i-th mobile device in the small base station in the sub-time         slot τ_(h), D_(i)(τ_(h)) represents a processed task of the i-th         mobile device in the sub-time slot τ_(h), f_(i,L)(τ_(h))         represent a local computation frequency of the i-th mobile         device in the sub-time slot τ_(h); Q_(i)(τ_(h)) represents a         task queue backlog in the sub-time slot τ_(h), ξ_(i,S)         ^(st)(τ_(h)) represents a dwell time period in the sub-time slot         τ_(h), and A_(i)(τ₁) represents a task arriving at the i-th         mobile device in the root node.

In some embodiments, the optimal strategy of the device is obtained based on the Lagrangian multiplier and the KKT condition by using the following equations:

${{f_{i,L}^{*}(t)} = {\left( {\frac{\rho_{i}}{{A_{L} \cdot \ln}2} - 1} \right)\frac{\gamma_{i}}{\tau_{i}^{d}}}},{t \in T},{and}$ ${{D_{i,k}^{*}(t)} = {\frac{\rho_{i}}{{A_{k} \cdot \ln}2} - 1}},{k \in \left\{ {M,S} \right\}},{{t \in T};{and}}$

-   -   the optimal quotation strategy of the MEC server to the device         is obtained based on the Lagrangian multiplier and the KKT         condition by using the following equation:

${{p_{i,k}^{*}(t)} = {{2\lambda_{k}k_{l_{k}}\frac{{D_{i,k}^{*}(t)}\gamma_{i}^{2}}{T_{i,k}^{pt}}} - \frac{D_{i,k}^{*}(t)}{\Theta_{k}}}};$

-   -   where, f*_(i,L)(t) represents an optimal local computation         frequency, ρ_(i) represents a utility weight parameter of an         i-th mobile user, A_(L) represents a locally arriving task set,         γ_(i) represents a computation density in cycles/bit obtained by         performing an offline measurement, τ_(i) ^(d) represents a         maximum computation delay constraint of D_(i)(t), D*_(i,k)(t)         represents an optimal offloading strategy, ρ*_(i,k) (t)         represents an optimal quotation strategy of a base station,         λ_(k) represents a unit energy consumption, k_(l) _(k)         represents an effective switching capacitance in the MEC server,         D*_(i,k)(t) represents an optimal offloading strategy, T_(i,k)         ^(pt) represents a processing time period for offloading a task,         and

${\Theta_{k} = \frac{\partial{D_{i,k}^{*}(t)}}{\partial{p_{i,k}(t)}}},{k \in \left\{ {M,S} \right\}},$ represents a first-order derivative of the optimal offloading strategy to a quotation.

With the extended game theory method based on the Lyapunov optimization theory according to the present disclosure, dynamic task offloading and adaptive computation power management in a time-varying environment are performed. Further, considering the uncertainty of computation and networks caused by the movements of the users and the limited edge resources, a distributed two-stage stochastic programming algorithm and a distributed multi-stage stochastic programming algorithm in a condition that multiple objectives are uncertain are provided. Furthermore, posteriori remedies are performed to compensate for inaccurate predicted network information according to the present disclosure.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 shows a typical UDN environment supporting MEC;

FIG. 2 shows a flowchart of a distributed computing power and network collaboration method based on a ultra-dense network under multi-objective uncertainty according to the present disclosure;

FIG. 3 shows a task processing and time slot model according to the present disclosure;

FIG. 4 shows a scenario tree based on dwell time periods of an i-th mobile device according to the present disclosure;

FIG. 5 is a schematic diagram showing a recourse and compensation process according to the present disclosure;

FIG. 6 is a schematic diagram showing changes of a price with the number of iterations according to the present disclosure;

FIG. 7 is a schematic diagram showing changes of offloaded tasks with the number of iterations according to the present disclosure;

FIG. 8 is a schematic diagram showing changes of a calculation offloading performance with time (in which V is equal to 500 and represents a non-negative control parameter in a drift decreasing utility function) according to the present disclosure; and

FIG. 9 is a schematic diagram showing changes of a computation offloading performance with V according to the present disclosure.

DETAILED DESCRIPTION OF THE EMBODIMENTS

The technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present disclosure. It is apparent that the embodiments described are only a part of the embodiments of the present disclosure rather than all of the embodiments. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative efforts fall within the scope of protection of the present disclosure.

FIG. 2 shows a flowchart of a distributed computation offloading method based on computation-network collaboration in a stochastic network according to the present disclosure. The method includes the following steps:

-   -   establishing a local computing model and an edge-cloud computing         model based on differentiated service quality requirements, task         processing costs, and the type of a device in a UDN environment;     -   establishing, based on the local computing model and the         edge-cloud computing model, a device revenue maximization         problem model by using a Lyapunov optimization theory and a         minimum drift decreasing utility function at the device;     -   establishing, based on the local computing model and the edge         cloud computing model, a MEC server revenue maximization problem         model by using a maximum value theory at an MEC server;     -   respectively establishing, based on a random movement of a user         and a burst computation requirement, a composite scenario set         based on a dwell time period and a composite scenario set based         on a waiting delay;     -   performing compensation on a game strategy by using a posteriori         recourse action, and establishing a game-based stochastic         programming model for the device and the MEC server;     -   establishing a scenario tree to transform a multi-stage         stochastic programming problem of the device and the MEC server         to a DEP problem;     -   solving an optimization problem of the device and an         optimization problem of the MEC server based on a Lagrangian         multiplier and a KKT condition to obtain an optimal task         offloading strategy of the device to the MEC server and an         optimal quotation strategy of the MEC server to the device; and     -   in a case that both the optimal task offloading strategy of the         device to the MEC server and the optimal quotation strategy of         the MEC server to the device meet a Stackelberg equilibrium         solution, offloading, by the device based on the optimal task         offloading strategy, a task to the MEC server.

First Embodiment

In the embodiment, the process of establishing a local computing model and an edge-cloud computing model based on differentiated service quality requirements, task processing costs, and the type of a device in a UDN environment according to the present disclosure is described in detail.

In the embodiment, as shown in FIG. 1 , a UDN system that supports MEC and operates in discrete time is considered. It is assumed that T={0, 1, . . . } and τ∈T, where T represents a time slot index and τ represents a time length of each of time slots, the system includes a macro base station (MBS) and n small base stations (SBS), N={1, . . . , n} and N represents a set of n SBSs, M represents the MBS, SEN and S represents an S-th SBS, M={1, . . . , m} and M represents m mobile devices (MDs), each of base stations is arranged with an MEC server where the MEC server has computing power and may provide computing power to MDs in a coverage region of the base station, each of the MDs may process tasks locally or offload a task to a MEC server of a base station, and each of the MDs may be connected to a MBS and a nearby SBS by using a dual connection in a 5G network or a CoMP technology.

It is assumed that MD_(i) represents an i-th mobile device, a task requested to be processed by MD_(i) may be represented by a quaternion Λ_(i)(t)=

Q_(i)(t), D_(i)(t), τ_(i) ^(d), γ_(i)

, where Q_(i)(t) represents a task queue backlog at a beginning of a time slot t and D_(i)(t) represents a task processing decision at the beginning of the time slot t, τ_(i) ^(d) represents a maximum computation delay constraint of D_(i)(t), and γ_(i) represents a computation density in cycles/bit that may be obtained by performing an offline measurements.

It is assumed that A_(i)(t) represents a task arriving at MD_(i) (i∈M) and A(t)={A_(i)(t), . . . , A_(m)(t)} represents a set of all MDs in the time slot t. Since the tasks arriving in onetime slot are limited, 0≤A_(i)(t)≤A_(i) ^(max), t∈T, where A_(i) ^(max) represents a maximum number of arriving tasks. It is assumed that task arrival rates of all the MDs meet an independent and identical distribution. An update equation for the queue backlog of MD i may be expressed as: Q _(i)(t+1)=[Q _(i)(t)−D _(i)(t)]⁺ +A _(i)(t),i∈M,t∈T

-   -   where

${\lbrack x\rbrack^{+} = {\max\left( {x,0} \right)}},{{D_{i}(t)} = {{D_{i,L}(t)} + {\sum\limits_{k \in {\{{M,S}\}}}{D_{i,k}(t)}}}},{D_{i,L}(t)}$

-   -    represents a task backlog processed locally, D_(i,M)(t)         represents a task backlog processed by the MBS, and D_(i,S)(t)         represent a task backlog processed by a SBS.

At a beginning of each of time slots, it is required for each of mobile devices to determine a task offloading strategy to determine the number of non-offloading tasks D_(i,L)(t) and the number of offloading tasks D_(i,k)(t), where k∈{M,S}. As shown in FIG. 3 , an offloading process includes the following three stages.

In a first stage, each of the MDs uploads a computation task D_(i,k)(t) to a BS through a wireless channel, where T_(i,k) ^(up)(t) represents a task upload delay.

In a second stage, the task uploaded by each of the MDs waits in a server for a time period which is referred to as a waiting delay T_(i,k) ^(wt)(t).

In a third stage, the offloaded task is to be processed by the server, and T_(i,k) ^(pt)(t) represents a processing time period.

It is required to process the offloaded task in a constraint time length τ_(i) ^(d). In a case that the offloaded task is not processed in the constraint time length τ_(i) ^(d), it is determined that the task is failed to be processed.

Since a capacity of a battery of a mobile device is limited, in order to save energy in limited time, a MD may process a task at a CPU clock frequency determined based on a dynamic voltage and frequency scaling (DVFS) technology. It is assumed that

${D_{i,L}(t)} = {\int\limits_{T_{i,L}^{pt}(t)}{\frac{f_{i,L}(t)}{\gamma_{i}}{dt}}}$ represents a relationship between processed tasks and local computing resources, where T_(i,L) ^(pt)(t)≤τ_(i) ^(d) and represents a local execution time period, f_(i,L)(t)(f_(i,L) ^(min)≤f_(i,L)(t)≤f_(i,L) ^(max)) represents a CPU clock frequency (cycle/s) allocated in a time slot, f_(i,L) ^(min) represents a minimum CPU clock frequency of MD i, and f_(i,L) ^(max) represents a maximum CPU clock frequency of MD i.

For each of the MDs, it is assumed in the present disclosure that the energy of the device is mainly consumed by the operation of the CPU. Generally,

${E_{i,L}^{exe}(t)} = {k_{i}{\int\limits_{T_{i,L}^{pt}(t)}{\left( {f_{i,L}(t)} \right)^{2}dt}}}$ represents energy consumption due to operation of a CPU, where k_(i) represents an effective energy factor, is related to a chip structure of the device and may be obtained by performing an offline measurements.

In the present disclosure, it is assumed that: (1) in a case that a MD is located both in a coverage region of a MBS and in coverage regions of SBSs, the MD may simultaneously communicate with the MBS and a nearby SBS in each of time slots, that is, the MD may offload a task to both the MBS and the nearby SBS; (2) due to random movements of the MDs and burst computation requirements, a dwell time periods T_(i,S) ^(st)(t), i∈M of a MD in a SBS and waiting delays T_(i,k) ^(wt)(t), k∈{M,S} of the MD in the different BSs are random and meet an independent identical distribution; and (3) in a case that a MD leaves a wireless coverage region of a SBS while the MD uploading a task to the SBS (where the uploaded task is represented by D_(i,S) ^(tr)(t)), it is required to firstly upload remaining tasks (D_(i,S)(t)—D_(i,S) ^(tr)(t)) to the MBS, and then the MBS forwards the remaining tasks to another SBS via a wired optical network.

For a delay-sensitive application, an uploading delay of a task should be less than a constraint time length, that is, T_(i,k) ^(up)(t)<τ_(i) ^(d). In a case that uploading delay of the task is not less than the constraint time length, it is certain that the task is to be executed unsuccessfully. Since calculation results are usually much smaller than inputted tasks of most applications, time cost for downloading calculation results from base stations is ignored in the present disclosure. Once a MD decides to offload a task to the MBS and a nearby SBS, the task uploading delay and communication energy cost are calculated as follows.

(1) Offloading a Task to a MEC Server of the MBS

For each of the MDs, it is required to transmit input bits of a task to the MBS through a wireless channel. It should be noted that an interference environment of the UDN becomes complex as the number of the users increases. Therefore, for a offloading decision, power interferences between devices should be considered. According to a Shannon-Hartley formula, an upload data rate is obtained by using the following equation:

${r_{i,M}(t)} = {\omega_{M}{\log_{2}\left( {1 + \frac{{P_{i}(t)}{g_{i,M}(t)}}{{\sigma^{2}(t)} + {\sum\limits_{{x \in {M \smallsetminus x}} = i}{P_{x}{{g_{x,M}(t)} \cdot 1}\left( {D_{x,M}(t)} \right)}}}} \right)}}$

-   -   where W_(M) represents a radio bandwidth, g_(i,M)(t) represents         a channel gain of the MBS, σ²(t) represents an average         background noise power, P_(i)(t) represents a communication         power of a MD i in a time slot t, and 1(·) represents an         indicator function.

Therefore, for the MBS, the task uploading delay is obtained by using the following equation:

${{T_{i,M}^{up}(t)} = \frac{D_{i,M}(t)}{r_{i,M}(t)}},{i \in M},$

-   -   the communication energy consumption is obtained by using the         following equation:

${{E_{i,M}^{up}(t)} = {{P_{i}(t)}\frac{D_{i,M}(t)}{r_{i,M}(t)}}},{i \in {M.}}$

(2) Offloading a Ask to a MEC Server of a SBS

In a case that a MD i offloads a task D_(i,S)(t) to a MEC server of a SBS, an uploading data rate is obtained by using the following equation:

${r_{i,S}(t)} = {\omega_{S}{\log_{2}\left( {1 + \frac{{P_{i}(t)}{g_{i,S}(t)}}{{\sigma^{2}(t)} + {\sum\limits_{{X \in {M \smallsetminus x}} = i}{P_{x}{{g_{x,S}(t)} \cdot 1}\left( {D_{x,S}(t)} \right)}}}} \right)}}$

-   -   where ω_(S) represents a wireless bandwidth, and g_(i,S)(t)         represents a channel gain of the SBS.

Generally, a wireless coverage region of a SBS is smaller than a wireless coverage region of a MBS. Based on the assumptions mentioned above, in a case that a MD leaves a wireless coverage region of a SBS while the MD uploading a task, the remaining tasks are firstly uploaded to the MBS and then are forwarded to another SBS. Therefore, an uploading delay of a SBS is obtained by using the following equation:

${T_{i,S}^{up}(t)} = \left\{ \begin{matrix} {{{T_{i,S}^{st}(t)} + \hat{T_{i,M}^{up}} + T_{i,M}^{f}},\ {{{if}\ {T_{i,S}^{st}(t)}} < \frac{D_{i,S}(t)}{r_{i,S}(t)}}} \\ {\frac{D_{i,S}(t)}{r_{i,S}(t)},{{{if}\ {T_{i,S}^{st}(t)}} \geq \frac{D_{i,S}(t)}{r_{i,S}(t)}}} \end{matrix} \right.$

-   -   where T_(i,S) ^(st)(t) represents a dwell time period of the MD         i in the SBS,

$\hat{T_{i,M}^{up}} = \frac{{D_{i,S}(t)} - {{T_{i,S}^{st}(t)}{r_{i,S}(t)}}}{r_{i,M}(t)}$

-   -    represents an uploading delay for the remaining tasks,

$T_{i,M}^{f} = \frac{{D_{i,S}(t)} - {{T_{i,S}^{st}(t)}{r_{i,S}(t)}}}{c}$

-   -    represents a forwarding time period of the remaining tasks, and         c represents a data rate of an optical link.

Therefore, the communication energy consumption of the MD i uploading D_(i,S)(t) to the SBS is obtained by using the following equation:

${E_{i,S}^{up}(t)} = \left\{ {\begin{matrix} {{{P_{i}(t)}\left( {{T_{i,S}^{st}(t)} + \hat{T_{i,M}^{up}}} \right)}\ ,\ {{{if}\ {T_{i,S}^{st}(t)}} < \frac{D_{i,S}(t)}{r_{i,S}(t)}}} \\ {{{P_{i}(t)}\frac{D_{i,S}(t)}{r_{i,S}(t)}},\ {{{if}\ {T_{i,S}^{st}(t)}} \geq \frac{D_{i,S}(t)}{r_{i,S}(t)}}} \end{matrix}.} \right.$

A total energy consumption of the MD I in the time slot t is obtained by using the following equation:

${E_{i,L}(t)} = {{E_{i,L}^{exe}(t)} + {\sum\limits_{k \in {\{{M,S}\}}}{{E_{i,k}^{up}(t)}.}}}$

A total computation offloading time period of the MBS/SBS is obtained by using the following equation: T _(i,k) ^(co)(t)=T _(i,k) ^(up)(t)+T _(i,k) ^(wt)(t)+T _(i,k) ^(pt)(t),k∈{M,S}.

To ensure that offloaded tasks are processed timely, a total computation offloading time period T_(i,k) ^(co)(t) (including an uploading time period, a waiting delay and a processing time period) does not exceed a constrained time period in each of time slots (that is, T_(i,k) ^(co)(t)≤τ_(i) ^(d)).

It is assumed that the MEC server is arranged with a CPU having L_(k) cores, a core set of a CPU is represented as L_(k)={1, . . . , L_(k)}, k∈{M,S}. A processing energy consumption of the MEC server for processing a task D_(i,k)(t) is obtained by using the following equation:

${{E_{i,k}(t)} = {\sum\limits_{l_{k} \in L_{k}}{{k_{l_{k}}\left( {\beta_{i,l_{k}}(t)} \right)}^{2}{T_{i,k}^{pt}(t)}}}},{k \in \left\{ {M,S} \right\}}$

-   -   where k_(l) _(k) represents an effective switching capacitance         in the MEC server, β_(i,l) _(k) (t) (β_(i) _(k) ^(min)≤β_(i,l)         _(k) (t)≤β_(i) _(k) ^(max)) represents a CPU clock frequency of         a l_(k)-th CPU core in the MEC server, β_(i) _(k) ^(min)         represents a minimum CPU clock frequency of each of CPU cores,         and β_(i) _(k) ^(max) represents a maximum CPU clock frequency         of each of the CPU cores.

Second Embodiment

In the embodiment, resource cost to be consumed for processing a task is calculated based on the local computing model and the edge-cloud computing model established in the first embodiment.

Based on the local computing model and the edge-cloud computing model established in the first embodiment, it can be seen that the computation offload delay strongly relies on the communication delay, the waiting delay and the processing delay of the task. In order to ensure that an offloaded task is processed in the constrained time period τ_(i) ^(d), computation factors (including a computation waiting time period T_(i,k) ^(wt)(t), a computation power f_(i,L) and β_(i,l) _(k) (t)) and network factors (including a dwell time period T_(i,S) ^(st)(t) and a communication time period T_(i,k) ^(up)(t)) are required to be considered.

In order to evaluate a task processing performance, a task processing utility function and a task processing cost function are defined in the present disclosure. For each of the MDs, in order to evaluate a revenue for processing a task in each of the time slots, a logarithmic utility function is adopted in the present disclosure, which is widely used in the field of wireless communications and mobile computations. An utility of the MD i is obtained by using the following equation:

${{u_{i}\left\lbrack {D_{i}(t)} \right\rbrack} = {\sum\limits_{k \in {\{{L,M,S}\}}}{\rho_{i}{\log\left\lbrack {1 + {D_{i,\hat{k}}(t)}} \right\rbrack}}}},{t \in T}$

-   -   where ρ_(i) is a utility weight parameter of MD i.

In a case that a transmission task of the MBS are expressed as:

${D_{i,M}^{tr}(t)} = \left\{ {\begin{matrix} {{{D_{i,M}(t)} + {D_{i,S}(t)} - {T_{i,S}^{st}{r_{i,S}(t)}}}\ ,\ {{{if}\ {T_{i,S}^{st}(t)}} < \frac{D_{i,S}(t)}{r_{i,S}(t)}}} \\ {{D_{i,M}(t)};\ {{{if}\ {T_{i,S}^{st}(t)}} \geq \frac{D_{i,S}(t)}{r_{i,S}(t)}}} \end{matrix},} \right.$

-   -   and a transmission task of a SBS is expressed as:

${D_{i,S}^{tr}(t)} = \left\{ \begin{matrix} {{T_{i,S}^{st}{r_{i,S}(t)}},\ {{{if}{\ }{T_{i,S}^{st}(t)}} < \frac{D_{i,S}(t)}{r_{i,S}(t)}}} \\ {{D_{i,S}(t)},\ {{{if}\ {T_{i,S}^{st}(t)}} \geq \frac{D_{i,S}(t)}{r_{i,S}(t)}}} \end{matrix} \right.$

-   -   communication cost of MD i is obtained by using the following         equation:         c _(i) [D _(i)(t)]=θ_(i) D _(i,M) ^(tr)(t)+η_(i) D _(i,s)         ^(tr)(t),t∈T     -   where θ_(i) represents communication cost for a unit of bit of         MD i in the MBS, and η_(i) represents communication cost for a         unit of bit of MD i in the SBS.

To simplify the analysis, it is assumed in the embodiment that a unit energy consumption cost is represented as λ_({circumflex over (k)})≥0, {circumflex over (k)}∈{L, M, S}. Therefore, the energy consumption cost is obtained by using the following equation: e _(i,{circumflex over (k)}) [d _(i)(t)]=λ_({circumflex over (k)}) E _(i,{circumflex over (k)})(t),t∈T.

In order to improve the user's experience for the computation offload service, a cloud server provider has to consume costs. Apparently, offload services are not free, and an edge-cloud server usually requires compensations to share resources. It is assumed that p_(i,k)(t),k∈{M,S} ($/bit) represents a unit payment cost of MD i for BS k in a time slot t, the compute service cost of MD i is obtained by using the following equation:

${{S_{i}\left\lbrack {D_{i}(t)} \right\rbrack} = {\sum\limits_{k \in {\{{M,S}\}}}{{p_{i,k}(t)}{D_{i,k}(t)}}}},{i \in M},$

-   -   and the service utility of the is obtained by using the         following equation:

${{u_{k}\left\lbrack {p_{k}(t)} \right\rbrack} = {\sum\limits_{\forall{i \in M}}{{p_{i,k}(t)}{D_{i,k}(t)}}}},{k \in \left\{ {M,S} \right\}},$

-   -   where p_(k)(t)□[p_(1,k)(t) . . . , p_(m,k)(t)] represents a         price strategy set of the MBS or a price strategy set of the         SBS.

Third Embodiment

Based on the local computing model and the edge-cloud computing model established in the first embodiment and the resource cost to be consumed for offloading tasks obtained in the second embodiment, a device revenue maximization problem model and a MEC server revenue maximization problem model are established based on a Lyapunov optimization theory and a minimum drift decreasing utility function in the embodiment.

In the present disclosure, the task offloading and computation resource allocation problem is described as a deterministic optimization problem, and it is assumed that the dwell time period T_(i,S) ^(st)(t) S∈N and the computation waiting time period T_(i,k) ^(wt)(t), k∈{M,S} are known in advance.

In the present disclosure, it is assumed that mobile devices are always rational, and seek an optimal offloading decision to maximize the long-term revenue. For an optimal decision of each of the MDs/buyers, an offloaded task, communication cost, energy cost and payment cost should be considered. Based on the above analysis, an objective function of a MD/buyer i in a time slot t is expressed as: U _(b) _(i) [D _(i)(t)]=u _(i) [D _(i)(t)]−c _(i) [D _(i)(t),T _(i,S) ^(st)(t)]−e _(i,L) [D _(i)(t),T _(i,S) ^(st)(t)]−s _(i) [D _(i)(t)]

To ensure the computation performance in the long term evolution, for the MD/buyer i, the device revenue maximization problem model is expressed as:

${{P1} - {{buyer}:{\max\limits_{{f_{i,L}(t)},{D_{i,k}(t)}}\overset{\_}{U_{b_{i}}}}}} = {\lim\limits_{T\rightarrow{+ \infty}}{\frac{1}{T}E{\sum\limits_{t = 0}^{T - 1}\left\{ {U_{b_{i}}\left\lbrack {D_{i}(t)} \right\rbrack} \right\}}}}$ s.t.T _(i,L) ^(pt)(t)≤τ_(i) ^(d), f _(i,L) ^(min) ≤f _(i,L)(t)≤f _(i,L) ^(max) ,t∈T, 0≤D _(i)(t)≤Q _(i)(t),t∈T, and

$\overset{\_}{Q_{i}(t)} = {{\lim\limits_{T\rightarrow{+ \infty}}{\sup\frac{1}{T}{\sum\limits_{t = 0}^{T - 1}{E\left\{ {Q_{i}(t)} \right\}}}}} \leq {+ {\infty.}}}$

A Lyapunov function for a computation task queue of the MD i is represented as:

${L_{i}\left( {Q_{i}(t)} \right)} = {\frac{1}{2}\left\{ {Q_{i}(t)} \right\}^{2}}$

-   -   where L_(i)(Q_(i)(t))≥0. Thus, a conditional Lyapunov drift is         expressed as:         Δ(Q _(i)(t))=E{L _(i)(Q _(i,t+1))−L _(i)(Q _(i)(t))|Q _(i)(t)}.

Based on an online optimal decision, an upper bound of a drift decreasing utility function is minimized, which is defined as: Δ(Q_(i)(t))−V_(i)E{U_(i)[D_(i)(t)]|Q_(i)(t)}, where V_(i)≥0 is a non-negative control parameter. To obtain the upper bound of the drift decreasing utility function, based on control parameters V_(i)≥0 and A_(i)(t)∈[0,A_(i) ^(max)] provided according to any possible decision, the following inequality may be obtained: Δ(Q _(i)(t))—V _(i) E{U _(i) [D _(i)(t)]|Q _(i)(t)} ≤B _(i) +Q _(i)(t)A _(i)(t)−E{Q _(i)(t)D _(i)(t)|Q _(i)(t)}−V _(i) E{U _(i) [D _(i)(t)]|Q _(i)(t)}

-   -   where

$B_{i} = {\frac{1}{2}{\left\{ {\left( {D_{i}(t)}^{\max} \right)^{2} + \left( {A_{i}(t)}^{\max} \right)^{2}} \right\}.}}$

The upper bound of the drift decreasing utility function may be obtained by minimizing the right-hand side (RHS) of the above inequality. Thus, the optimization problem P1-buyer may be transformed to:

${{P2} - {{buyer}:\max\limits_{{f_{i,L}(t)},{D_{i,k}(t)}}{Y_{b_{i}}(t)}}} = {{V_{i} \cdot {U_{b_{i}}\left\lbrack {D_{i}(t)} \right\rbrack}} + {\sum\limits_{k \in {\{{L,M,S}\}}}{{Q_{i}(t)} \cdot {D_{i,k}(t)}}} - {{Q_{i}(t)} \cdot {A_{i}(t)}}}$ s.t.T _(i,L) ^(pt)(t)≤τ_(i) ^(d), f _(i,L) ^(min) ≤f _(i,L)(t)≤f _(i,L) ^(max) ,t∈T, 0≤D _(i)(t)≤Q _(i)(t),t∈T,

$\overset{\_}{Q_{i}(t)} = {{\lim\limits_{T\rightarrow{+ \infty}}{\sup\frac{1}{T}{\sum\limits_{t = 0}^{T - 1}{E\left\{ {Q_{i}(t)} \right\}}}}} \leq {+ {\infty.}}}$

For each of BSs (base stations)/sellers, based on e_(i,{circumflex over (k)})[D_(i)(t)]=λ_({circumflex over (k)})E_(i,{circumflex over (k)})(t),t∈T,

${{s_{i}\left\lbrack {D_{i}(t)} \right\rbrack} = {\sum\limits_{k \in {\{{M,S}\}}}{{p_{i,k}(t)}{D_{i,k}(t)}}}},{i \in M}$ and

${{u_{k}\left\lbrack {p_{k}(t)} \right\rbrack} = {\sum\limits_{\forall{i \in M}}{{p_{i,k}(t)}{D_{i,k}(t)}}}},{k \in \left\{ {M,S} \right\}},$ revenues U_(s) _(k) ,k∈{M,S} of the MBS/SBS are respectively defined as:

${{P1}{- {{{seller}({MBS})}:\max\limits_{{p_{i,M}(t)},{\beta_{i,l_{M}}(t)}}\overset{\_}{U_{s_{M}}}}}} = {\lim\limits_{T\rightarrow{\dagger \infty}}{\frac{1}{T}{E\left\lbrack {\sum\limits_{t = 0}^{T - 1}\left\{ {{u_{M}\left\lbrack {p_{M}(t)} \right\rbrack} - {\sum\limits_{\forall i}{e_{i,M}\left\lbrack {{D_{i,M}(t)},{T_{i,M}^{wt}(t)}} \right\rbrack}}} \right.} \right\rbrack}}}$ s.t.T _(i,M)(t)≥0,t∈T, p _(i,M) ^(co)≤τ_(i) ^(d) ,t∈T, β_(l) _(M) ^(min)≤β_(i,l) _(M) (t)≤β_(l) _(M) ^(max) ,t∈T,

${{P1} - {{{seller}({SBS})}:\max\limits_{{p_{i,S}(t)},{\beta_{i,l_{S}}(t)}}\overset{\_}{U_{s_{S}}}}} = {\lim\limits_{T\rightarrow{+ \infty}}{\frac{1}{T}E{\sum\limits_{t = 0}^{T - 1}\left\{ {{u_{S}\left\lbrack {p_{S}(t)} \right\rbrack} - {\sum\limits_{\forall i}{e_{i,S}\left\lbrack {{D_{i,S}(t)},{{T_{i,S}^{st}(t)}{T_{i,S}^{wt}(t)}}} \right\rbrack}}} \right.}}}$ s.t.p _(i,S)(t)≥0,t∈T, T _(i,S) ^(co)≤τ_(i) ^(d) ,t∈T, β_(l) _(S) ^(min)≤β_(i,l) _(S) (t)≤β_(l) _(S) ^(max) ,t∈T

The revenues of the MBS and the SBS are related to a pricing set P_(i,k)(t), an allocated computational power β_(i,l) _(k) (t) and a computation waiting delay T_(i,k) ^(wt)(t) in the time slot t. In order to ensure that the offloaded tasks are processed within the constrained time period, it is required for the SBS S to consider the waiting time period T_(i,S) ^(st)(t) of MD i. Furthermore, based on a maximum theory, the problem P1-seller may be transformed to the following problem:

P2 − seller(MBS): ${\max\limits_{{p_{M}(t)},\beta_{i,l_{M}}}{Y_{s_{M}}(t)}} = {{u_{M}\left\lbrack {p_{M}(t)} \right\rbrack} - {\sum\limits_{\forall i}{e_{i,M}\left\lbrack {{D_{i,M}(t)},{T_{i,M}^{wt}(t)}} \right\rbrack}}}$ s.t.p _(i,M)(t)≥0,t∈T, T _(i,M) ^(co)≤τ_(i) ^(d) ,t∈T, β_(l) _(M) ^(min)≤β_(i,l) _(M) (t)≤β_(l) _(M) ^(max) ,t∈T

P2 − seller(SBS): ${\max\limits_{{p_{S}(t)} \cdot \beta_{i,l_{S}}}{Y_{s_{S}}(t)}} = {{u_{s}\left\lbrack {p_{s}(t)} \right\rbrack} - {\sum\limits_{\forall i}{e_{i,S}\left\lbrack {{D_{i,S}(t)},{T_{i,S}^{st}(t)},{T_{i,S}^{wt}(t)}} \right\rbrack}}}$ s.t.p _(i,S)(t)≥0,t∈T, T _(i,S) ^(co)≤τ_(i) ^(d) ,t∈T, β_(l) _(S) ^(min)≤β_(i,l) _(S) (t)≤β_(l) _(S) ^(max) ,t∈T.

Based on P2-seller, each of the sellers periodically announces a latest market prices p_(k)(t) based on the user's requirement D_(i,k)(t) and a current network state (such as the calculated waiting time period T_(i,k) ^(wt)(t) and the calculated dwell time period T_(i,s) ^(st)(t) in the time slot t. With the changes of the requirement and the network state, the seller dynamically adjusts the pricing strategy until market equilibrium is reached, and the allocated computing power β_(i,l) _(k) (t) is adaptively adjusted.

Fourth Embodiment

In the third embodiment, it is assumed in the present disclosure that the dwell time period T_(i,S) ^(st)(t) and the waiting delay T_(i,k) ^(wt)(t),∈{M,S} are known. However, due to the random movements of the users and burst computation requirements, the dwell time period and the waiting delay are uncertain at a beginning of each of time slots. Decisions may be made by using average historical values of the dwell time period and the waiting delay or predicting the dwell time period and the waiting delay. However, in a real time-varying environment, it is difficult to perform high-precision predictions. Imprecise results affect computation performance and offloading success rate. For example, in a case that a predicted dwell time period and a predicted waiting delay are respectively greater than an actual dwell time period and an actual waiting delay, the computation offloading cost increases, or even the offloading process fails. Therefore, a two-stage stochastic programming method is performed according to the present disclosure to perform posteriori remedy to compensate for previous inaccurate predictions.

In order to deal with an uncertain dwell time period T_(i,S) ^(st)(t) and an uncertain waiting delay T_(i,k) ^(wt)(t), a scenario set having uncertain parameters is considered in the present disclosure. Ω_(i,S) ^(st)(t) represents a scenario set based on possible dwell time periods of the MD i in a SBS, and Ω_(i,k) ^(wt)(t) represents a scenario set based on possible waiting delays of the MD i in a BS k, k∈{M,S}. Based on a Cartesian product, a composite scenario Ω_(S) ^(st)(t) based on dwell time periods of all MDs and a composite scenario Ω_(k) ^(wt)(t) based on waiting delays of all MDs may be respectively expressed as:

${{\Omega_{S}^{st}(t)} = {{\underset{i = 1}{\prod\limits^{m}}{\Omega_{i,S}^{st}(t)}} = {{\Omega_{1,S}^{st}(t)}*\ldots*{\Omega_{m,S}^{st}(t)}}}},{and}$ ${\Omega_{k}^{wt}(t)} = {{\underset{i = 1}{\prod\limits^{m}}{\Omega_{i,k}^{st}(t)}} = {{\Omega_{1,k}^{wt}(t)}*\ldots*{{\Omega_{m,k}^{wt}(t)}.}}}$

It is noted that based on U_(b) _(i) [D_(i)(t)]=u_(i)[D_(i)(t)]−c_(i)[D_(i)(t),T_(i,S) ^(st)(t)]−e_(i,L)[D_(i)(t),T_(i,S) ^(st)(t)]−s_(i)[D_(i)(t)], a revenue of a MD is related to a scenario Ω_(i,S) ^(st)(t) based on a dwell time period. Therefore, the revenue of the MBS is related to the composite scenario Ω_(M) ^(wt)(t) and the revenues of the BSs are related to the composite scenario Ω_(S)(t)=Ω_(S) ^(st)(t)*Ω_(S) ^(wt)(t), where Ω_(S)(t) represents a composite scenario based on composite time (that is, dwell time period and waiting delays in the SBSs). Hereafter, a game-based distributed two-stage stochastic programming model is analyzed in the present disclosure.

To simplify the analysis, analysis is performed based on the SBSs in the present disclosure. The analysis based on MBS may be easily derived from the analysis based on the SBSs.

In an uncertain and time-varying network environment, actual values of stochastic variables are obtained after performing processes, that is, the dwell time period T_(i,S) ^(st)(t) and the waiting delay T_(i,k) ^(wt)(t) are obtained after performing the game and uploading offloaded tasks to the cloud. However, after observing actual situations, compensation may be performed on the game strategy by performing a posterior recourse action. Based on the stochastic programming theory, a decision set includes the following two groups according to the present disclosure.

For a decision group in a first stage (game stage), it is required to adopt a strategy for offloading a task D_(i)(t) and a strategy for announcing a price p_(i,S)(t) before obtaining T_(i,S) ^(st)(t) and T_(i,S) ^(wt)(t) through the game. This stage is referred to as a first stage or a game stage.

For a decision group in a second stage (recourse stage), allocation of computing power β_(i,l) _(S) (t) may be performed after observing the realizations of T_(i,S) ^(st)(t) and T_(i,S) ^(wt)(t), which is referred to as a second stage decision. This stage is referred to as a second stage or a recourse stage.

T_(i,S) ^(st)(t)∈Ω_(i,S) ^(st)(t) represents a realization of a dwell time period in a time slot t, and ω_(S)(t)=(T_(1,S) ^(st)(t), . . . , T_(m,S) ^(st)(t), Ω_(1,S) ^(qt), . . . , Ω_(m,S) ^(qt)) represents a composite realization of the dwell time period in the time slot t. p[T_(i,S) ^(st)(t)]∈[0,1] and p[ω_(S)(t)]∈[0,1] represent probabilities. Based on the stochastic programming theory, an optimal problem of P2-buyer may be expressed as a two-stage stochastic programming problem:

P3 − buyer(two − stage): $\begin{matrix} {{\max\limits_{{f_{i,L}(t)},{D_{i,k}(t)}}{Y_{b_{i}}\ (t)}} = {V_{i}\left\{ {{u_{i}\left\lbrack {D_{i}(t)} \right\rbrack} - {s_{i}\left\lbrack {D_{i}(t)} \right\rbrack}} \right.}} \\ {{- E_{\Omega_{i,S}^{st}(t)}}\left\{ {c_{i}\left( {{D_{i,t}(t)},\left. {T_{i,S}^{st}(t)} \middle| {{T_{i,S}^{st}(t)} \in {\Omega_{i,S}^{st}(t)}} \right.} \right)} \right\}} \\ \left. {{- E_{\Omega_{{j = i},S}^{st}(t)}}\left\{ {e_{i,L}\left( {{D_{i,t}(t)},\left. {T_{i,S}^{st}(t)} \middle| {{T_{i,S}^{st}(t)} \in {\Omega_{i,S}^{st}(t)}} \right.} \right)} \right\}} \right\} \\ {{+ {\sum\limits_{k \in {\{{L,M,S}\}}}{{Q_{i}(t)}{D_{i,k}(t)}}}} - {{Q_{i}(t)}{A_{i}(t)}}} \end{matrix}$ s.t.T _(i,L) ^(pt)(t)≤τ_(i) ^(d), f _(i,L) ^(min) ≤f _(i,L)(t)≤f _(i,L) ^(max) ,t∈T, 0≤D _(i)(t)≤Q _(i)(t),t∈T, and

$\overset{\_}{Q_{i}(t)} = {{\lim\limits_{T\rightarrow{+ \infty}}{\sup\frac{1}{T}{\sum\limits_{t = 0}^{T - 1}{E\left\{ {Q_{i}(t)} \right\}}}}} \leq {+ {\infty.}}}$

Similarly, an optimal problem of P2-seller (SBS) may be expressed as:

P3 − seller(two − stage): ${\max\limits_{{p_{S}(t)},{\beta_{i,l_{S}}(t)}}{Y_{s_{S}}(t)}} = {{u_{S}\left\lbrack {p_{S}(t)} \right\rbrack} - {E_{\Omega_{S}(t)}\left\lbrack {R\left( {{\beta_{i,l_{S}}(t)},{\Omega_{S}(t)}} \right)} \right\rbrack}}$ s.t.p _(i,S)(t)≥0,t∈T, T _(i,S) ^(co)(t)≤τ_(i) ^(d) ,t∈T, and β_(l) _(S) _(min)≤β_(i,l) _(S) (t)≤β_(l) _(S) ^(max) ,t∈T,

-   -   where

${{R\left( {{\beta_{i,l_{S}}(t)},{\Omega_{S}(t)}} \right)} = {\sum\limits_{\forall i}{e_{i,S}\left\lbrack {{D_{i,S}(t)},{T_{i,S}^{st}\left( {\omega_{S}(t)} \right)},{T_{i,S}^{wt}\left( {\omega_{S}(t)} \right)}} \right\rbrack}}},$

-   -    and R(β_(i,l) _(S) (t),Ω_(S)(t)) represents a recourse         function.

Expressions of an optimal problem for a macro base station may be derived by those skilled in the art based on the expressions for the small base stations, and not repeated in the embodiment.

Fifth Embodiment

As shown in FIG. 1 , each of the MDs may move randomly between two or more SBSs. However, it is only required to perform a decision once in each of the time slots by using the game strategy based on two-stage stochastic programming, thus a sub-optimal solution may be obtained. Therefore, statistical features of T_(i,s) ^(st)(t) and T_(i,S) ^(wt)(t) may be accurately captured, and the offloading strategy, the pricing strategy and the computation power allocation strategy may be accurately defined, and the game strategy may be further developed by using multi-stage stochastic programming. In the multi-stage stochastic programming, a computation offloading process is divided into H sub-slices (H□{τ₁, τ₂, . . . , τ_(H)}). In a sub-slice τ_(h), multi-stage stochastic programming is performed, and then the task offloading D_(i)(τ_(h)), τ_(h)∈H, the price p_(i,S)(τ_(H)) and the computation power allocation β_(i,l) _(S) _((t)) are optimal. ξ_(i,S) ^(st)(τ_(h)) represents a possible dwell time period in the sub-slice τ_(h), and ξ_(S)(τ_(h)) represents possible composite time in the sub-slice τ_(h). The dwell time periods in all composite scenarios in all sub-time slots are expressed as:

${\xi_{i,S}^{st} = {{\underset{h = 1}{\prod\limits^{H}}{\xi_{i,S}^{st}\left( \tau_{h} \right)}} = {{\xi_{i,S}^{st}\left( \tau_{1} \right)} \times \ldots \times {\xi_{i,S}^{st}\left( \tau_{H} \right)}}}},$ the composite time in all composite scenarios in all sub-time slots is expressed as:

$\xi_{S} = {{\prod\limits_{h = 1}^{H}{\xi_{S}\left( \tau_{h} \right)}} = {{\xi_{S}\left( \tau_{1} \right)} \times \ldots \times {{\xi_{S}\left( \tau_{H} \right)}.}}}$

After dividing a task time period t of an offloading task into H sub-time slots, a distributed stochastic programming model having 2 H stages is obtained as follows.

A task offloading optimization problem of a MD/buyer i may be transformed to the following optimization problem of P3-buyer(multi-stage):

P3 − buyer(multi − stage): $\max\limits_{{f_{i,L}(\tau_{h})},{D_{i,k}(\tau_{h})}}Y_{b_{i}}\left\{ {{D_{i}\left( \tau_{1} \right)},\ldots,{D_{i}\left( \tau_{H} \right)},{f_{i,L}\left( \tau_{1} \right)},\ldots,{f_{i,L}\left( \tau_{H} \right)}} \right\}$ $\begin{matrix} {= {V_{i}\left\{ {{u_{i}\left\lbrack {D_{l}\left( \tau_{1} \right)} \right\rbrack} - {c_{i}\left\lbrack {D_{i}\left( \tau_{1} \right)} \right\rbrack} - {e_{i,L}\left\lbrack {D_{i}\left( \tau_{1} \right)} \right\rbrack} - {s_{i}\left\lbrack {D_{i}\left( \tau_{1} \right)} \right\rbrack}} \right.}} \\ {{+ E_{{\xi_{i,S}^{st}(\tau_{h})}|{\xi_{i,S}^{s}(\tau_{h - 1})}}}{\sum\limits_{h = 2}^{H}\left\{ {{u_{i}\left\lbrack {D_{i}\left( \tau_{h} \right)} \right\rbrack} - {s_{i}\left\lbrack {D_{i}\left( \tau_{h} \right)} \right\rbrack}} \right\}}} \\ {{- E_{{\xi_{i,S}^{st}(\tau_{h})}{❘{\xi_{i,S}^{st}(\tau_{h - 1})}}}}{\sum\limits_{h = 2}^{H}{c_{i}\left\lbrack {{D_{i}\left( \tau_{h} \right)},{T_{i,S}^{st}\left( \tau_{h} \right)}} \right\rbrack}}} \\ \left. {{- E_{{\xi_{i,S}^{st}(\tau_{h})}|{\xi_{i,S}^{st}(\tau_{h - 1})}}}{\sum\limits_{h = 2}^{H}{e_{i,L}\left\lbrack {{D_{i}\left( \tau_{h} \right)},{T_{i,S}^{st}\left( \tau_{h} \right)}} \right\rbrack}}} \right\} \\ {{{+ {Q_{i}\left( \tau_{1} \right)}}{D_{i}\left( \tau_{1} \right)}} + {E_{{\xi_{i,S}^{st}(\tau_{h})}{❘{\xi_{i,S}^{st}(\tau_{h - 1})}}}{\sum\limits_{h = 2}^{H}{{Q_{i}\left( \tau_{h} \right)}{D_{i}\left( \tau_{h} \right)}}}}} \\ {{{- {Q_{i}\left( \tau_{1} \right)}}{A_{i}\left( \tau_{1} \right)}} - {E_{{{\xi_{i,S}^{st}(\tau_{h})}❘}{\xi_{i,S}^{st}(\tau_{h - 1})}}{\sum\limits_{h = 2}^{H}{{Q_{i}\left( \tau_{h} \right)}{A_{i}\left( \tau_{h} \right)}}}}} \end{matrix}$ s.t.f_(i, L)^(min) ≤ f_(i, L)(τ_(h)) ≤ f_(i, L)^(max), τ_(h) ∈ H, ${{\sum\limits_{h = 1}^{H}{D_{i}\left( \tau_{h} \right)}} = {D_{i}\left( \tau_{h} \right)}},{\tau_{h} \in H},{and}$ ${0 \leq {\sum\limits_{h = 1}^{H}{D_{i}\left( \tau_{h} \right)}} \leq {Q_{i}\left( \tau_{h} \right)}},{\tau_{h} \in H},$

-   -   where D_(i)(τ_(h)) represents processed tasks of MD i in the         sub-time slot τ_(h), and f_(i,L)(τ_(h)) represents a local         computation frequency of MD i in the sub-time slot τ_(h).

Similarly, an optimization problem of a SBS/seller is transformed to:

P3 − seller(multi − stage): $\max\limits_{{p_{i,S}(\tau_{h})},{\beta_{i,S}(\tau_{h})}}Y_{s_{s}}\left\{ {{p_{i,S}\left( \tau_{1} \right)},\ldots,{p_{i,S}\left( \tau_{H} \right)},{\beta_{i,S}\left( \tau_{1} \right)},\ldots,{\beta_{i,S}\left( \tau_{H} \right)}} \right\}\begin{matrix} {= {{u_{S}\left\lbrack {p_{S}\left( \tau_{1} \right)} \right\rbrack} - {\sum\limits_{j = 1}^{m}\left\{ {{e_{i,S}\left\lbrack {D_{i,S}\left( \tau_{1} \right)} \right\rbrack} + {p_{i,S}^{f}\left\lbrack {D_{i,S}\left( \tau_{1} \right)} \right\rbrack}} \right\}}}} \\ {{+ E_{{\xi_{S}(\tau_{h})}{❘{\xi_{S}(\tau_{h - 1})}}}}{\sum\limits_{h = 2}^{H}{u_{S}\left\lbrack {p_{S}\left( \tau_{h} \right)} \right\rbrack}}} \\ {{- E_{{\xi_{S}(\tau_{h - 1})}|_{\xi_{S}(\tau_{h - 1})}}}{\sum\limits_{i = 1}^{m}{\sum\limits_{h = 2}^{H}{e_{i,S}\left\lbrack {{D_{i,S}\left( \tau_{h} \right)},{T_{i,S}^{st}\left( \tau_{h} \right)},{T_{i,S}^{wt}\left( \tau_{h} \right)}} \right\rbrack}}}} \end{matrix}$ s.t.p_(i, S)(τ_(h)) ≥ 0, τ_(h) ∈ H, ${{E_{\xi_{s}}\left\{ {\sum\limits_{h = 1}^{H}\left\lbrack {{T_{i,S}^{up}\left( \tau_{h} \right)} + {T_{i,S}^{wt}\left( \tau_{h} \right)} + {\sum\limits_{l_{k} \in L_{k}}\frac{{D_{i}\left( \tau_{h} \right)}\gamma_{i}}{\beta_{i,l_{k}}}}} \right.} \right\}} \leq \tau_{i}^{d}},{and}$ β_(l_(S))^(min) ≤ β_(i, l_(S))(τ_(h)) ≤ β_(l_(S))^(max), τ_(h) ∈ H,

-   -   where

${E_{\xi_{s}}\left\{ {\sum\limits_{h = 1}^{H}\left\lbrack {{T_{i,S}^{up}\left( \tau_{h} \right)} + {T_{i,S}^{wt}\left( \tau_{h} \right)} + {\sum\limits_{l_{k} \in L_{k}}\frac{{D_{i}\left( \tau_{h} \right)}\gamma_{i}}{\beta_{i,l_{k}}}}} \right.} \right\}} \leq \tau_{i}^{d}$

-   -    to ensure that a sum of computation offloading time periods in         all sub-slices does not exceed the constraint time length τ_(i)         ^(d).

Similarly, a multi-stage stochastic model for a macro base station may be established by those skilled in the art based on the idea of establishing the multi-stage stochastic model for the small base station, which is not repeated in the present disclosure.

Sixth Embodiment

In the embodiment, a scenario tree is used to solve the optimization problem of P3-buyer(multi-stage) and the optimization problem of P3-seller(multi-stage), transforming the stochastic programming problem to deterministic equality programming (DEP).

π_(i,S) ^(st)∈ξ_(i,S) ^(st) is defined as an implementation of ξ_(i,S) ^(st), and π_(S)∈ξ_(S) is defined as an implementation of τ_(S). The scenario tree is branched according to the implementations of τ_(i,S) ^(st)(τ_(h)) and ξ_(S)(τ_(h)), τ_(h)∈H FIG. 4 shows a typical scenario tree based on dwell time periods of a MD/Buyer i, in which the evolution of ξ_(i,S) ^(st)(τ_(h)) τ_(h)∈H is described based on two implementations. In the scenario tree based on the dwell time periods, a root node is associated with a first decision stage in which no dwell time period is observed. The root node is connected to child nodes, and the child nodes are associated with a next stage. Each of the nodes is connected to an associated child node in the next stage until to a leaf node. Each of the child nodes has two implementations associated with two random dwell time periods T_(i,S) ^(st)(τ_(h)):T_(i,S) ^(st,1)(τ_(h)), T_(i,S) ^(st,2)(τ_(h)).

After establishing the scenario tree, the stochastic programming problem between the buyer P3-buyer(multi-stage) and the seller P3-seller(multi-stage) is transformed to a DEP problem according to the present disclosure.

PT_(π) _(i,S) _(st) represents a path from the root node to a leaf node in the scenario tree based on the dwell time periods. For a determined scenario π_(i,S) ^(st)∈ξ_(i,S) ^(st), PT_(π) _(i,S) _(st) is determined. D_(i)(τ₁) represents a task offloading decision at the root node, and D_(i)(τ_(h)) represents a offloading decision at a node in a 2 h-th stage in the path PT_(π) _(i,S) _(st) . The multi-stage stochastic programming of the MD/buyer i may be transformed to the following DEP problem:

${\max\limits_{{f_{i,L}(\tau_{h})},{D_{i,S}(\tau_{h})}}{Y_{b_{i}}(t)}} = {V_{i}\left\{ {{u_{i}\left\lbrack {D_{i}\left( \tau_{1} \right)} \right\rbrack} - {c_{i}\left\lbrack {D_{i}\left( \tau_{1} \right)} \right\rbrack} - {e_{i,L}\left\lbrack {D_{i}\left( \tau_{1} \right)} \right\rbrack} - {s_{i}\left\lbrack {D_{i}\left( \tau_{1} \right)} \right\rbrack}} \right.}$ $\begin{matrix} {+ {\sum\limits_{\pi_{i,S}^{st} \in \xi_{i,S}^{s}}{{p\left( \pi_{i,S}^{st} \right)}{\sum\limits_{h = 2}^{H}\left\{ {{u_{i}\left\lbrack {D_{i}^{\pi_{i,S}^{st}}\left( \tau_{h} \right)} \right\rbrack} - {s_{i}\left\lbrack {D_{i}^{\pi_{i,S}^{st}}\left( \tau_{h} \right)} \right\rbrack}} \right\}}}}} \\ \left. \left. {- {\sum\limits_{\pi_{i,S}^{st} \in \xi_{i,S}^{s}}{{p\left( \pi_{i,S}^{st} \right)}{\sum\limits_{h = 2}^{H}\left\{ {{c_{i}\left\lbrack {D_{i}^{\pi_{i,S}^{st}}\left( \tau_{h} \right)} \right\rbrack},{T_{i,S}^{{st},\pi_{i,S}^{st}}\left( \tau_{h} \right)}} \right.}}}} \right\rbrack \right\} \\ \left. {- {\sum\limits_{\pi_{i,S}^{st} \in \xi_{i,S}^{s}}{{p\left( \pi_{i,S}^{st} \right)}{\sum\limits_{h = 2}^{H}\left\{ {e_{i,L}\left\lbrack {{D_{i}^{\pi_{i,S}^{st}}\left( \tau_{h} \right)},{T_{i,S}^{{st},\pi_{i,S}^{st}}\left( \tau_{h} \right)}} \right\rbrack} \right\}}}}} \right\} \\ {{{+ {Q_{i}\left( \tau_{1} \right)}}{D_{i}^{\pi_{i,S}^{st}}\left( \tau_{1} \right)}} - {{Q_{i}\left( \tau_{1} \right)}{A_{i}\left( \tau_{1} \right)}}} \\ {+ {\sum\limits_{\pi_{i,S}^{st} \in \xi_{i,S}^{st}}{{p\left( \pi_{i,S}^{st} \right)}{\sum\limits_{h = 2}^{H}\left\{ {{{Q_{i}\left( \tau_{1} \right)}{D_{i}^{\pi_{i,S}^{st}}\left( \tau_{h} \right)}} - {{Q_{i}\left( \tau_{h} \right)}{A_{i}\left( \tau_{h} \right)}}} \right\}}}}} \end{matrix}$ s.t.f_(i, L)^(min) ≤ f_(i, L)(τ_(h)) ≤ f_(i, L)^(max), τ_(h) ∈ H, ${{\sum\limits_{h = 1}^{H}{D_{i}\left( \tau_{h} \right)}} = {D_{i}\left( \tau_{h} \right)}},{\tau_{h} \in H},$ ${0 \leq {\sum\limits_{h = 1}^{H}{D_{i}\left( \tau_{h} \right)}} \leq {Q_{i}\left( \tau_{h} \right)}},{\tau_{h} \in H},{and}$ ${{D_{i,\overset{\hat{}}{k}}^{\pi_{i,S}^{st}}\left( \tau_{h} \right)} = {D_{i}^{\pi_{i,S^{\prime}}^{st}}\left( \tau_{h} \right)}},{\forall\pi_{i,S}^{st}},{\pi_{i,S}^{st} \in \xi_{i,S}^{st}}$ ${\pi_{i,S}^{st} \neq \pi_{i,S^{\prime}}^{st}},{{{PT}\left( {D_{i,\overset{\hat{}}{k}}^{\pi_{i,S}^{st}}\left( \tau_{h} \right)} \right.} = {PT{D_{i,}^{\pi_{i,S^{\prime}}^{st}}\left( \tau_{h} \right)}}}$

-   -   where p(π_(i,S) ^(st)) represents a probability of a scenario         π_(i,S) ^(st), and the constraint

${{D_{i,\overset{\hat{}}{k}}^{\pi_{i,S}^{st}}\left( \tau_{h} \right)} = {D_{i}^{\pi_{i,S^{\prime}}^{st}}\left( \tau_{h} \right)}},{\forall\pi_{i,S}^{st}},{\pi_{i,S}^{st} \in \xi_{i,S}^{st}}$ ${\pi_{i,S}^{st} \neq \pi_{i,S^{\prime}}^{st}},{{{PT}\left( {D_{i,\overset{\hat{}}{k}}^{\pi_{i,S}^{st}}\left( \tau_{h} \right)} \right.} = {PT{D_{i,}^{\pi_{i,S^{\prime}}^{st}}\left( \tau_{h} \right)}}}$

-   -    is a unexpected constraint indicating that the offloading         decision should be equivalent in different paths.

Similarly, PT_(π) _(S) represents a path from a root node to a leaf node in a composite scenario tree. For a determined scenario π_(S)∈ξ_(S)(τ_(h)), a DEP model of a SBS/seller is expressed as:

$\begin{matrix} {{\max\limits_{{p_{i,S}(\tau_{h})},{\beta_{i,S}(\tau_{h})}}Y_{s_{S}}(t)} = {{u_{s}\left\lbrack {p_{S}\left( \tau_{1} \right)} \right\rbrack} - {\sum\limits_{i = 1}^{m}\left\{ {{e_{i,S}\left\lbrack {D_{i,S}\left( \tau_{1} \right)} \right\rbrack} - {p_{i,S}^{f}\left\lbrack {D_{i,S}\left( \tau_{h} \right)} \right\rbrack}} \right\}}}} \\ \begin{matrix} {+ {\sum\limits_{\pi_{s} \in \xi_{s}}^{1}{{p\left( \pi_{S} \right)}{\sum\limits_{h = 2}^{H}{u_{S}\left\lbrack {p_{s^{s}}^{\pi}\left( \tau_{h} \right)} \right\rbrack}}}}} \\ {- {\sum\limits_{i = {1\pi}}^{m}{\sum\limits_{s^{\in \xi}s}{{p\left( \pi_{S} \right)}{\sum\limits_{h = 2}^{H}{e_{j,s}\left\lbrack {{D_{i,s^{s}}^{\pi}\left( \tau_{h} \right)},{T_{j,S}^{{st},\pi_{s}}\left( \tau_{h} \right)},{T_{i,S}^{{qt},\pi_{s}}\left( \tau_{h} \right)}} \right\rbrack}}}}}} \\ {\sum\limits_{i = {1\pi}}^{m}{\sum\limits_{s^{\in \xi}s}{{p\left( _{S} \right)}{\sum\limits_{h = 2}^{H}{p_{i,S}^{f}\left\lbrack {{D_{i,S}^{\pi_{s}}\left( \tau_{h} \right)},{T_{i,S}^{{st},\pi_{s}}\left( \tau_{h} \right)},{T_{i,S}^{{qt},{/r_{s}}}\left( \tau_{h} \right)}} \right\rbrack}}}}} \end{matrix} \end{matrix}$ s.t.p_(i, S)(τ_(h)) ≥ 0, τ_(h) ∈ H, ${{E_{\xi_{s}}\left\{ {\sum\limits_{h = 1}^{H}\left\lbrack {{T_{i,S}^{up}\left( \tau_{h} \right)} + {T_{i,S}^{wt}\left( \tau_{h} \right)} + {\sum\limits_{l_{k} \in L_{k}}\frac{{D_{i}\left( \tau_{h} \right)}\gamma_{i}}{\beta_{i,l_{k}}}}} \right.} \right\}} \leq \tau_{i}^{d}},$ β_(l_(s))^(min) ≤ β_(i, l_(s))(τ_(h)) ≤ β_(l_(s))^(max), τ_(h) ∈ H, and D_(i, S)^(π_(s))(τ_(h)) = D_(i, S)^(π_(s^(′)))(τ_(h)), ∀π_(S), π_(S^(′)) ∈ ξ_(S) π_(S) ≠ π_(S^(′)), PT(D_(i, S)^(π_(S))(τ_(h))) = PT(D_(i, S)^(π_(S^(′)))(τ_(h)))

-   -   where p(π_(S)) represents a probability of a scenario π_(S), and         D_(i) ^(π) ^(S) (τ_(h)) represents a task processed in an h-th         stage in a path PT_(π) _(S) _(.)

Two stages are included in each of sub-time slots. As shown in FIG. 5 , in an even-numbered stage, computation power recourse β_(i,S)(τ_(h)) is performed on an odd-numbered stage to compensate for the uncertain dwell time period and the uncertain computation waiting delay in the sub-time slot. In a sub-time slot, offloading task recourse D_(i,S)(τ_(h)) is performed on a previous sub-time slot to perform accurate compensation and ensure that offloaded tasks may be processed in a constraint time period. In general, the optimal strategy for the multi-stage stochastic programming is related to the number of stages, that is, more divided stages indicate more optimal strategy and more complex solution process.

Seventh Embodiment

In the embodiment, the resource allocation strategy described above in the present disclosure is analyzed. To simplify the analysis, an optimal game strategy in one stage is analyzed in the present disclosure, which may be easily extended to multiple stages in the same way.

1. Analysis of Optimal Game

(1) Analysis of the Optimal Strategy for MDs

${\frac{\partial{Y_{b_{i}}(t)}}{\partial{D_{i,L}(t)}} = {{V_{i}\left\{ \frac{\rho_{i}}{\left( {1 + {D_{i,L}(t)}} \right)\ln 2} \right\}} + {Q_{i}(t)}}}{\frac{\partial{Y_{b_{i}}(t)}}{\partial{D_{i,M}(t)}} = {{V\left\{ {\frac{\rho_{i}}{\left( {1 + {D_{i,M}(t)}} \right)\ln 2} - \theta_{i} - \frac{\lambda_{i}{P_{i}(t)}}{r_{i,M}(t)} - {p_{i,M}(t)}} \right\}} + {Q_{i}(t)}}}{\frac{\partial{Y_{b_{i}}(t)}}{\partial{D_{i,S}(t)}} = \left\{ \begin{matrix} {{{V\left\{ {\frac{\rho_{i}}{\left( {1 + {D_{i,S}(t)}} \right)\ln 2} - \theta_{i} - \frac{\lambda_{i}{P_{i}(t)}}{r_{i,M}(t)} - {p_{i,S}(t)}} \right\}} + {Q_{i}(t)}},{{{if}T_{i,S}^{st}} < \frac{\lambda_{i}{P_{i}(t)}}{r_{i,M}(t)}}} \\ {{{V\left\{ {\frac{\rho_{i}}{\left( {1 + {D_{i,S}(t)}} \right)\ln 2} - \eta_{i} - \frac{\lambda_{i}{P_{i}(t)}}{r_{i,S}(t)} - {p_{i,S}(t)}} \right\}} + {Q_{i}(t)}},{{{if}T_{i,S}^{st}} \geq \frac{\lambda_{i}{P_{i}(t)}}{r_{i,S}(t)}}} \end{matrix} \right.}$

According to P2-buyer, the above first-order partial derivatives

$\frac{\partial{Y_{b_{i}}(t)}}{\partial{D_{i,L}(t)}},{\frac{\partial{Y_{b_{i}}(t)}}{\partial{D_{i,M}(t)}}{and}\frac{\partial{Y_{b_{i}}(t)}}{\partial{D_{i,S}(t)}}}$ may be obtained. In addition, second-order partial derivatives

${\frac{\partial^{2}{Y_{b_{i}}(t)}}{\partial\left( {D_{i,L}(t)} \right)^{2}}<=0},{\frac{\partial^{2}{Y_{b_{i}}(t)}}{\partial\left( {D_{i,M}(t)} \right)^{2}} < {0{and}\frac{\partial^{2}{Y_{b_{i}}(t)}}{\partial\left( {D_{i,S}(t)} \right)^{2}}} < 0}$ may be obtained. Since

${f_{i,L}^{\min} \leq {f_{i,L}(t)} \leq f_{i,L}^{\max}},{t \in T},{0 \leq {D_{i}(t)} \leq {Q_{i}(t)}},{{t \in {T{and}{Q_{i}(t)}}} = {{\lim\limits_{T\rightarrow{+ \infty}}{\sup\frac{1}{T}E{\sum\limits_{t = {0}}^{T - 1}\left\{ {Q_{i}(t)} \right\}}}} \leq {+ \infty}}}$ are affine functions, Y_(b) _(i) (t) is a convex function for D_(i)(t). The optimization problem for the buyer/MDs may be solved by Lagrangian multipliers and Karush-Kuhn-Tucker (KKT) conditions, and the optimal strategy is expressed as:

${{{f_{i,L}^{*}(t)} = {\left( {\frac{\rho_{i}}{{A_{L} \cdot \ln}2} - 1} \right)\frac{\gamma_{i}}{\tau_{i}^{d}}}},{t \in T}}{{{D_{i,k}^{*}(t)} = {\frac{\rho_{i}}{{A_{k} \cdot \ln}2} - 1}},{k \in \left\{ {M,S} \right\}},{t \in T}}$

-   -   where

${{A_{L} = {- \frac{Q_{i}(t)}{V_{i}}}};}{{A_{M} = {{p_{i,M}(t)} + \theta_{i} + \frac{\lambda_{i}{P_{i}(t)}}{r_{i,M}(t)} - \frac{Q_{i}(t)}{V_{i}}}};{and}}{A_{S} = \left\{ {\begin{matrix} {{\theta_{i} + \frac{\lambda_{i}{P_{i}(t)}}{r_{i,M}(t)} + {p_{i,S}(t)} - \frac{Q_{i}(t)}{V_{i}}},{{{if}T_{i,S}^{st}} < \frac{\lambda_{i}{P_{i}(t)}}{r_{i,M}(t)}}} \\ {{\eta_{i} + \frac{\lambda_{i}{P_{i}(t)}}{r_{i,M}(t)} + {p_{i,S}(t)} - \frac{Q_{i}(t)}{V_{i}}},{{{if}T_{i,S}^{st}} \geq \frac{\lambda_{i}{P_{i}(t)}}{r_{i,M}(t)}}} \end{matrix}.} \right.}$

(2) Analysis of the Optimal Strategy for BSs

According to P2-seller (SBS), the first-order partial derivative of Y_(s) _(k) (t) to p_(i,k)(t) may be obtained as follows:

$\frac{\partial{Y_{s_{k}}(t)}}{\partial{p_{i,k}(t)}} = {{D_{i,k}(t)} + {{p_{i,k}(t)}\frac{\partial{D_{i,k}(t)}}{\partial{p_{i,k}(t)}}} - {\frac{2\lambda_{k}k_{k}{D_{i,k}(t)}\gamma_{i}^{2}}{T_{i,k}^{pt}}\frac{\partial{D_{i,k}(t)}}{\partial{p_{i,k}(t)}}} - {\delta_{i,k}^{f}{\frac{\partial{D_{i,k}(t)}}{\partial{p_{i,k}(t)}} \cdot 1}\left\{ {{T_{i,k}^{co}(t)} \geq \tau_{i}^{d}} \right\}}}$

In a case that a trading price in the market meets P_(i,k)(t)≥0, it is determined that

${\frac{\partial^{2}{Y_{s_{k}}(t)}}{\partial\left( {p_{i,k}(t)} \right)^{2}} < 0},{k \in {\left\{ {M,S} \right\}.}}$

In addition, since p_(i,M)(t)≥0, t∈T, T_(i,M) ^(co)(t)≤τ_(i) ^(d), t∈T, β_(I) _(M) ^(min)≤β_(i,I) _(M) (t), t∈T, p_(i,S)(t)≥0, t∈T, T_(i,S) ^(co)(t)≤τ_(i) ^(d), t∈T, and β_(l) _(S) ^(min)≤β_(i,l) _(S) (t)≤β_(l) _(S) ^(max), t∈T are affine functions and Y_(s) _(k) (t) is a convex function for p_(i,k)(t), the optimal problem for the BSs/sellers may be solved based on Lagrangian multipliers and KKT, and the optimal strategy is expressed as:

${p_{i,k}^{*}(t)} = {{2\lambda_{k}k_{l_{k}}\frac{{D_{i,k}^{*}(t)}\gamma_{i}^{2}}{T_{i,k}^{pt}}} - \frac{D_{i,k}^{*}(t)}{\Theta_{k}}}$

-   -   where

${\Theta_{k} = \frac{\partial{D_{i,k}^{*}(t)}}{\partial{p_{i,k}(t)}}},{k \in {\left\{ {M,S} \right\}.}}$

Definition 1: in a case that a price p_(i,k)(t) of a seller k is determined, D_(i,k) ^(SE)(t) meets

${{Y_{b_{i}}\left( {D_{i,k}^{SE}(t)} \right)} = {\sup\limits_{{D_{i,k}^{\min}(t)} \leq {D_{i,k}(t)} \leq {D_{i,k}^{\max}(t)}}\left\{ {Y_{b_{i}}\left( {D_{i,k}(t)} \right)} \right\}}},{{\forall{t \in T}};}$ and in a case that an offloading task D_(i,k)(t) of a buyer i is determined, p_(i,k) ^(SE)(t) meets

$Y_{s_{k}}\left( {{{p_{i,k}^{SE}(t)} = {\sup\limits_{{p_{i,k}(t)} \geq 0}\left\{ {Y_{s_{k}}\left( {p_{i,k}(t)} \right)} \right\}}},{\forall{t \in {T.}}}} \right.$

Hereinafter, it is proved that the optimal solution (D*_(i,k)(t), p*_(i,k)(t)) is (D_(i,k) ^(SE)(t), p_(i,k) ^(SE)(t)) based on the following three lemmas according to the present disclosure.

Lemma 1: in a case that a price p_(i,k)(t) of a BS/seller k is determined, a revenue function Y_(b) _(i) (D_(i,k)(t)) of a MD/buyer reaches a maximum value at D*_(i,k)(t).

Proof: based on the above analysis, it is known that Y_(b) _(i) is a convex function for D_(i,k)(t). Therefore, the revenue function Y_(b) _(i) (D_(i,k)(t)) reaches a maximum value at D*_(i,k)(t). According to Definition 1, D*_(i,k)(t) is an SE solution D_(i,k) ^(SE)(t).

Lemma 2: for a buyer, an optimal offloading task D*_(i,k)(t) decreases as a price p_(i,k)(t) of a seller increases.

Proof: based on

${{f_{i,L}^{*}(t)} = {\left( {\frac{\rho_{i}}{{A_{L} \cdot \ln}2} - 1} \right)\frac{\gamma_{i}}{\tau_{i}^{d}}}},{t \in T},$ it may be obtained that:

$\frac{\partial{D_{i,k}^{*}(t)}}{\partial{p_{i,k}(t)}} = {{{- \frac{\rho_{i}}{A_{k}^{2}}}\ln 2} < 0.}$

Therefore, it can be obtained that D*_(i,k)(t) is a monotonically decreasing function for p_(i,k)(t). That is, a higher transaction price indicates fewer tasks to be offloaded by the buyer, thus little revenue or no revenue may be obtained by the seller. Therefore, the seller should provide an appropriate price to maximize the revenue. The optimal price of the seller may be obtained by solving

$\frac{\partial{Y_{s_{k}}\left( {p_{i,k}(t)} \right)}}{\partial{p_{i,k}(t)}} = 0.$

Lemma 3: in a case that an optimal offloading task D*_(i,k)(t) of a MD/buyer i is constant, Y_(s) _(k) (p_(i,k)(t)) rcaches a maximum value at p*_(i,k)(t).

Proof: it has been proved in the present disclosure that the revenue Y_(s) _(k) of the seller is a convex function for P_(i,k)(t). Therefore, according to Definition 1, Y_(s) _(k) (p_(i,k)(t)) reaches a maximum value at p*_(i,k)(t), and p*_(i,k)(t) is an SE solution p_(i,k) ^(SE)(t).

In short, (D*_(i,k)(t), p*_(i,k)(t)) is the optimal task offloading and pricing decision, and is the SE solution (D_(i,k) ^(SE)(t), p_(i,k) ^(SE)(t)).

It can be seen from FIGS. 6 to 7 that price is not to be reduced with the iterations, and the price gradually be converged to an optimal pricing strategy as the number of iterations increases. In FIG. 6 , referring to a point at which the number of iterations is 50, four curves from top to bottom respectively represent a second stage of a MBS game, a first stage of the MBS game, a first stage of a SBS game, and a second stage of the SBS game. In FIG. 7 , referring to a point at which the number of iterations is 50, four curves from top to bottom respectively represent a second stage of a SBS game, a first stage of the SBS game, a first stage of a MBS game and a second stage of the MBS game. In addition, the number of unloaded tasks decreases with the increase of price. When the price is no longer increased, the unloading strategy is stable, verifying the effectiveness of the method. It can be seen from FIGS. 8 to 9 that the transaction price in the market gradually increases with the backlog of the task queue of the buyers, and the revenues of the buyers gradually decreases with the increase of the offloading cost. It can be seen from FIG. 9 that there is a trade-off [O(1/V), O(V)] between an average queue backlog and the revenue, verifying the rationality of the method.

In the embodiments according to the present disclosure, a subscript S represents a parameter associated with a small base station, a subscript M represents a parameter associated with a macro base station, and a subscript i represents a parameter associated with a mobile device.

Although the embodiments of the present disclosure have been shown and described, it should be understood by those skilled in the art that a variety of variations, modifications, replacements and variants can be made based on these embodiments without departing from the principles and spirit of the present disclosure, and the scope of the present disclosure is limited by the appended claims and their equivalents. 

The invention claimed is:
 1. A distributed computation offloading method based on computation-network collaboration in a stochastic network, comprising: establishing a local computing model and an edge-cloud computing model based on differentiated service quality requirements, task processing costs, and the type of a device in a ultra-dense network UDN environment; establishing, based on the local computing model and the edge-cloud computing model, a device revenue maximization problem model by using a Lyapunov optimization theory and a minimum drift decreasing utility function at the device; establishing, based on the local computing model and the edge cloud computing model, a MEC server revenue maximization problem model by using a maximum value theory at a multi-access edge computing MEC server, respectively establishing, based on a random movement of a user and a burst computation requirement, a composite scenario set based on a dwell time period and a composite scenario set based on a waiting delay; performing compensation on a game strategy by performing a posteriori recourse action, and establishing a game-based stochastic programming model for the device and the MEC server, establishing a scenario tree to transform a multi-stage stochastic programming problem of the device and the MEC server to a DEP problem; solving an optimization problem of the device and an optimization problem of the MEC server based on a Lagrangian multiplier and a KKT condition to obtain an optimal task offloading strategy of the device to the MEC server and an optimal quotation strategy of the MEC server to the device; and in a case that both the optimal task offloading strategy of the device to the MEC server and the optimal quotation strategy of the MEC server to the device meet a Stackelberg equilibrium solution, offloading, by the device based on the optimal task offloading strategy, a task to the MEC server.
 2. The distributed computation offloading method according to claim 1, wherein the establishing a device revenue maximization problem model comprises: ${{\max\limits_{{f_{i,L}(t)},{D_{i,k}(t)}}{Y_{b_{i}}(t)}} = {{V_{i} \cdot {U_{b_{i}}\left\lbrack {D_{i}(t)} \right\rbrack}} + {\sum\limits_{k \in {\{{L,M,S}\}}}{{Q_{i}(t)} \cdot {D_{i,k}(t)}}} - {{Q_{i}(t)} \cdot {A_{i}(t)}}}},$ and constraints comprise: T _(i,L) ^(pt)(t)≤τ_(i) ^(d), f _(i,L) ^(min) ≤f _(i,L)(t)≤f _(i,L) ^(max) ,t∈T 0≤D _(i)(t)≤Q _(i)(t),t∈T, and ${\overset{\_}{Q_{i}(t)} = {{\lim\limits_{T\rightarrow{+ \infty}}{\sup\frac{1}{T}{\sum\limits_{t = 0}^{T - 1}{E\left\{ {Q_{i}(t)} \right\}}}}} \leq {+ \infty}}};$ where f_(i,L) (t) represents a CPU clock frequency set of an i-th device, D_(i,k)(t) represents an offloading task set in a time slot t, Y_(b) _(i) (t) represents a long-term revenue of the i-th device, V_(i) represents a non-negative control parameter in the Lyapunov optimization theory, D_(i,k) (t) represents an offloading task for an i-th mobile device, A_(i)(t) represents a task arriving at the i-th mobile device in the time slot t, T represents a time slot index and T={0, 1, . . . }, U_(b) _(i) [D_(i)(t)] represents a total revenue of the i-th device in the time slot t; k∈{L, M, S} represents a current task type, L represents a non-offloading task, M represents a task offloaded to a macro base station, S represents a task offloaded to a small base station; T_(i,L) ^(pt)(t) represents a time pcriod in which a local server processes an offloaded task, T_(i) ^(d) represents a maximum computation delay constraint of D_(i)(t), f_(i,L) ^(min) represents a minimum CPU clock frequency allocated for the i-th mobile device in the time slot t, f_(i,L)(t) represents a CPU, clock frequency allocated for the i-th mobile device in the time slot t, f_(i,L) ^(max) represents a maximum CPU clock frequency allocated for the i-th mobile device in the time slot t, D_(i)(t) represents a task processing decision at a beginning of the time slot t, Q_(i)(t) represents a task queue backlog at the beginning of the time slot t, and Q_(i)(t) represents an average queue backlog.
 3. The distributed computation offloading method according to claim 1, wherein in a case that a task is offloaded to a macro base station, the MEC server revenue maximization problem model is expressed as: ${{\max\limits_{{p_{M}(t)},\beta_{i,l_{M}}}{Y_{s_{M}}(t)}} = {{u_{M}\left\lbrack {p_{M}(t)} \right\rbrack} - {\sum\limits_{\forall i}{e_{i,M}\left\lbrack {{D_{i,M}(t)},{T_{i,M}^{wt}(t)}} \right\rbrack}}}},$ and constraints comprise: p _(i,M)(t)≥0,t∈T, T _(i,M) ^(co)(t)≤τ_(i) ^(d) ,t∈T, and β_(l) _(M) ^(min)≤β_(i,l) _(M) (t)≤β_(l) _(M) ^(max) ,t∈T; where P_(M)(t) represents a pricing set of the macro base station in a time slot t, β_(i,l) _(M) represents a computing capacity set allocated to the macro base station, Y_(s) _(M) (t) represents a revenue of the macro base station, u_(M)[p_(M)(t)] represents a service utility of the macro base station, e_(i,M)[D_(i,M)(t), T_(i,M) ^(wt)(t)] represents a task computing energy consumption of the macro base station, P_(i,M)(t) represents a payment cost of an i-th device in the time slot t to the macro base station, T represents a time slot index and T={0, 1, . . . }, T_(i,M) ^(co)(t) represents a total computation offloading time period of the macro base station in the time slot t, τ_(i) ^(d) represents a maximum computation delay constraint of D_(i)(t), β_(l) _(M) ^(min) represents a minimum frequency of each of CPU cores in the macro base station, β_(i,l) _(M) (t) represents a frequency of an i-th CPU core in the macro base station, and β_(l) _(M) ^(max) represents a maximum frequency of each of the CPU cores in the macro base station.
 4. The distributed computation offloading method according to claim 1, wherein in a case that a task is offloaded to a small base station, the MEC server revenue maximization problem model is expressed as: ${\max\limits_{{p_{S}(t)},\beta_{i,l_{S}}}{Y_{s_{S}}(t)}} = {{u_{S}\left\lbrack {p_{S}(t)} \right\rbrack} - {\sum\limits_{\forall i}{e_{i,S}\left\lbrack {{D_{i,S}(t)},{T_{i,S}^{st}(t)},{T_{i,S}^{wt}(t)}} \right\rbrack}}}$ and constraints comprise: p _(i,S)(t)≥0,t∈T, T _(i,S) ^(co)(t)≤τ_(i) ^(d) ,t∈T, and β_(l) _(S) ^(min)≤β_(i,l) _(S) (t)≤β_(l) _(S) ^(max) ,t∈T; where p_(S)(t) represents a pricing set of the small base station in a time slot t, β_(i,l) _(S) represents a computing capacity set allocated to the small base station, Y_(s) _(S) (t) represents a revenue of the small base station, u_(S)[p_(S)(t)] represents a service utility of the small base station, e_(i,S)[D_(i,S)(t),T_(i,S) ^(st)(t), T_(i,S) ^(wt)(t)] represents a task computing energy consumption of the small base station, p_(i,S)(t) represents a payment cost of an i-th device in the time slot t to the small base station, T represents a time slot index and T={0, 1, . . . }, T_(i,S) ^(co)(t) represents a total computation offloading time period of the small base station in the time slot t, τ_(i) ^(d) represents a maximum computation delay constraint of D_(i)(t), β_(l) _(S) ^(min) represents a minimum frequency of each of CPU cores in the small base station, β_(i,l) _(S) (t) represents a frequency of an i-th CPU core in the small base station, and β_(l) _(S) ^(max) represents a maximum frequency of each of the CPU cores in the small base station.
 5. The distributed computation offloading method according to claim 1, wherein the establishing a composite scenario set based on a dwell time period and a composite scenario set based on a waiting delay comprises: in a case that a possible dwell time period and a possible waiting time period of a mobile device in a small base station are known, obtaining, based on a Cartesian product, a composite scenario based on dwell time periods of all mobile devices and a composite scenario based on waiting delays of all the mobile devices, wherein a composite scenario set based on the dwell time periods of all the mobile devices is expressed as: Ω_(S)(t)=Ω_(S) ^(st)(t)*Ω_(S) ^(wt)(t), ${{{{\Omega_{S}^{st}(t)} = {{\overset{m}{\prod\limits_{i = 1}}{\Omega_{i,S}^{st}(t)}} = {{\Omega_{1,S}^{st}(t)}*\ldots*{\Omega_{m,S}^{st}(t)}}}},{and}}}{{{\Omega_{k}^{wt}(t)} = {{\prod\limits_{i = 1}^{m}{\Omega_{i,k}^{st}(t)}} = {{\Omega_{1,k}^{wt}(t)}*\ldots*{\Omega_{m,k}^{wt}(t)}}}};}$ where m represents the number of the mobile devices, Ω_(i,S) ^(st)(t) represent a composite scenario based on a dwell time period of an i-th mobile device, and Ω_(i,k) ^(wt)(t) represents a composite scenario based on a waiting delay of the i-th mobile device.
 6. The distributed computation offloading method according to claim 1, wherein compensation is performed on the game strategy by using the posteriori recourse action, that is, a two-stage optimal programming model is adopted, parameters are obtained based on the device revenue maximization problem model and the MEC server revenue maximization problem model in a first stage, compensation is performed on the parameters obtained in the first stage by using the posteriori recourse action in a second stage, and the device revenue maximization problem model after the compensation performed by using the posterior recourse action is expressed as: ${\max\limits_{{f_{i,L}(t)},{D_{i,k}(t)}}{Y_{b_{i}}(t)}} = {{V_{i}\left\{ {{u_{i}\left\lbrack {D_{i}(t)} \right\rbrack} - {s_{i}\left\lbrack {D_{i}(t)} \right\rbrack} - {E_{\Omega_{i,S}^{st}(t)}\left\{ {c_{i}\left( {{D_{i,t}(t)},\left. {T_{i,S}^{st}(t)} \middle| {{T_{i,S}^{st}(t)} \in {\Omega_{i,S}^{st}(t)}} \right.} \right)} \right\}} - {E_{\Omega_{i,S}^{st}(t)}\left\{ {e_{i,L}\left( {{D_{i,t}(t)},\left. {T_{i,S}^{st}(t)} \middle| {{T_{i,S}^{st}(t)} \in {\Omega_{i,S}^{st}(t)}} \right.} \right)} \right\}}} \right\}} + {\sum\limits_{k \in {\{{L,M,S}\}}}{{Q_{i}(t)}{D_{i,k}(t)}}} - {{Q_{i}(t)}{A_{i}(t)}i}}$ and constraints comprise: ${{{{T_{i,L}^{pt}(t)} \leq \tau_{i}^{d}},{f_{i,L}^{\min} \leq {f_{i,L}(t)} \leq f_{i,L}^{\max}},{t \in T},{0 \leq {D_{i}(t)} \leq {Q_{i}(t)}},{t \in T},{and}}}{{\overset{\_}{Q_{i}(t)} = {{\lim\limits_{T\rightarrow{+ \infty}}{\sup\frac{1}{T}{\sum\limits_{t = 0}^{T - 1}{E\left\{ {Q_{i}(t)} \right\}}}}} \leq {+ \infty}}};}$ in a case that a task is offloaded to a small base station, the MEC server revenue maximization problem model after the compensation performed by using the posterior recourse action is expressed as: ${{\max\limits_{{p_{S}(t)},{\beta_{i,l_{S}}(t)}}{Y_{s_{S}}(t)}} = {{u_{S}\left\lbrack {p_{S}(t)} \right\rbrack} - {E_{\Omega_{S}(t)}\left\lbrack {R\left( {{\beta_{i,l_{S}}(t)},{\Omega_{S}(t)}} \right)} \right\rbrack}}},$ and constraints comprise: p _(i,S)(t)≥0,t∈T, T _(i,S) ^(co)(t)≤τ_(i) ^(d) ,t∈T, and β_(l) _(S) ^(min)≤β_(i,l) _(S) (t)≤β_(l) _(S) ^(max) ,t∈T; where f_(i,L)(t) represents a CPU clock frequency set of an i-th device, D_(i,k)(t) represents an offloading task set, Y_(b) _(i) (t) represents a long-term revenue of the i-th device, V_(i) represents a non-negative control parameter in the Lyapunov optimization theory, u_(i)[D_(i)(t)] represents a utility of the i-th device, S_(i)[D_(i)(t)] represents a computation service cost of the i-th device, E_(Ω) _(i,S) _(st) _((t)){(c_(i)(D_(i,t)(t),T_(i,S) ^(st)(t)|T_(i,S) ^(st)(t)∈Ω_(i,S) ^(st)(t))} represents an average communication cost in a composite scenario Ω_(i,S) ^(st)(t), E_(Ω) _(i,S) _(st) _((t)){e_(i,L)(D_(i,t)(t), T_(i,S) ^(st)(t)|T_(i,S) ^(st)(t)∈Ω_(i,S) ^(st)(t))} represents an average energy consumption cost in the composite scenario Ω_(i,S) ^(st)(t), D_(i,k)(t) represents an offloading task for the i-th mobile device, A_(i)(t) represents a task arriving at the i-th mobile device in a time slot t, T represents a time slot index and T={0, 1, . . . }, U_(b) _(i) [D_(i)(t)] represents a total revenue of the i-th device in the time slot t, k∈{L, M, S} represents a current task offloading position, L indicates that a task is offloaded locally, M indicates that a task is offloaded to a macro base station, S indicates that a task is offloaded to a small base station, T_(i,L) ^(pt)(t) represents a time period in which a local server processes an offloaded task, τ_(i) ^(d) represents a maximum computation delay constraint of D_(i)(t), f_(i,L) ^(min) represents a minimum CPU clock frequency allocated for the i-th mobile device in the time slot t, f_(i,L)(t) represents a CPU clock frequency allocated for the i-th mobile device in the time slot t, f_(i,L) ^(max) represents a maximum CPU clock frequency allocated for the i-th mobile device in the time slot t, D_(i)(t) represents a task processing decision at a beginning of the time slot t, Q_(i)(t) represents a task queue backlog at the beginning of the time slot t, Q_(i)(t) represents an average queue backlog, Y_(s) _(S) (t) represents a revenue of a small base station, u_(S)[p_(S)(t)] represents a service utility of the small base station, E_(Ω) _(S) _((t))[R(β_(i,l) _(S) (t),Ω_(S)(t))] represents an average recourse in a composite scenario Ω_(i,S) ^(st)(t), P_(i,M)(t) represents a payment cost of the i-th device to the macro base station in the time slot t, T represents a time slot index and T={0, 1, . . . }, T_(i,M) ^(co)(t) represents a total computation offloading time period of the macro base station in the time slot t, τ_(i) ^(d) represents a maximum computation delay constraint of D_(i)(t), β_(l) _(M) ^(min) represents a minimum frequency of each of CPU cores in the macro base station, β_(i,l) _(M) (t) represents a frequency of an i-th CPU core in the macro base station, and β_(l) _(M) ^(max) represents a maximum frequency of each of the CPU cores in the macro base station.
 7. The distributed computation offloading method according to claim 6, wherein a recourse function R(β_(i,l) _(S) (t), Ω_(S)(t)) is expressed as: ${R\left( {{\beta_{i,l_{S}}(t)},{\Omega_{S}(t)}} \right)} = {\sum\limits_{\forall i}{e_{i,S}\left\lbrack {{D_{i,S}(t)},{T_{i,S}^{st}\left( {\omega_{S}(t)} \right)},{T_{i,S}^{wt}\left( {\omega_{S}(t)} \right)}} \right\rbrack}}$ where e_(i,S)[D_(i,S)(t), T_(i,S) ^(st)(Ω_(S)(t)), T_(i,S) ^(wt)(ω_(S)(t))] represents an energy consumption cost of the small base station.
 8. The distributed computation offloading method according to claim 6, wherein a task offloading process is divided into H sub-time slots, a distributed programming model with 2H stages is obtained, and the device revenue maximization problem model is expressed as: ${\max\limits_{{f_{i,L}(\tau_{h})},{D_{i,k}(\tau_{h})}}Y_{b_{i}}\left\{ {{D_{i}\left( \tau_{1} \right)},\ldots,{D_{i}\left( \tau_{H} \right)},{f_{i,L}\left( \tau_{1} \right)},\ldots,{f_{i,L}\left( \tau_{H} \right)}} \right\}} = {{V_{i}\ \left\{ {{u_{i}\left\lbrack {D_{i}\left( \tau_{1} \right)} \right\rbrack} - {c_{i}\left\lbrack {D_{i}\left( \tau_{1} \right)} \right\rbrack} - {e_{i,L}\left\lbrack {D_{i}\left( \tau_{1} \right)} \right\rbrack} - {s_{i}\left\lbrack {D_{i}\left( \tau_{1} \right)} \right\rbrack} + {E_{{\xi_{i,S}^{st}(\tau_{h})}|{\xi_{i,S}^{st}(\tau_{h - 1})}}{\sum\limits_{h = 2}^{H}\left\{ {{u_{i}\left\lbrack {D_{i}\left( \tau_{h} \right)} \right\rbrack} - {s_{i}\left\lbrack {D_{i}\left( \tau_{h} \right)} \right\rbrack}} \right\}}} - {E_{{\xi_{i,S}^{st}(\tau_{h})}|{\xi_{i,S}^{st}(\tau_{h - 1})}}{\sum\limits_{h = 2}^{H}{c_{i}\left\lbrack {{D_{i}\left( \tau_{h} \right)},{T_{i,S}^{st}\left( \tau_{h} \right)}} \right\rbrack}}} - {E_{{\xi_{i,S}^{st}(\tau_{h})}|{\xi_{i,S}^{st}(\tau_{h - 1})}}{\sum\limits_{h = 2}^{H}{e_{i,L}\left\lbrack {{D_{i}\left( \tau_{h} \right)},{T_{i,S}^{st}\left( \tau_{h} \right)}} \right\rbrack}}}} \right\}} + {{Q_{i}\left( \tau_{1} \right)}{D_{i}\left( \tau_{1} \right)}} + {E_{{\xi_{i,S}^{st}(\tau_{h})}|{\xi_{i,S}^{st}(\tau_{h - 1})}}{\sum\limits_{h = 2}^{H}{{Q_{i}\left( \tau_{h} \right)}{D_{i}\left( \tau_{h} \right)}}}} - {{Q_{i}\left( \tau_{1} \right)}{A_{i}\left( \tau_{1} \right)}} - {E_{{\xi_{i,S}^{st}(\tau_{h})}|{\xi_{i,S}^{st}(\tau_{h - 1})}}{\sum\limits_{h = 2}^{H}{{Q_{i}\left( \tau_{h} \right)}{A_{i}\left( \tau_{h} \right)}}}}}$ and constraints comprise: ${{{f_{i,L}^{\min} \leq {f_{i,L}\left( \tau_{h} \right)} \leq f_{i,L}^{\max}},{\tau_{h} \in H},{{\sum\limits_{h = 1}^{H}{D_{i}\left( \tau_{h} \right)}} = {D_{i}\left( \tau_{h} \right)}},{\tau_{h} \in H},{and}}}{{0 \leq {\sum\limits_{h = 1}^{H}{D_{i}\left( \tau_{h} \right)}} \leq {Q_{i}\left( \tau_{h} \right)}},{{\tau_{h} \in H};}}$ in the case that the task is offloaded to the small base station, the MEC server revenue maximization problem model is expressed as: ${\max\limits_{{p_{i,S}(\tau_{h})},{\beta_{i,S}(\tau_{h})}}Y_{s_{S}}\left\{ {{p_{i,S}\left( \tau_{1} \right)},\ldots,{p_{i,S}\left( \tau_{H} \right)},{\beta_{i,S}\left( \tau_{1} \right)},\ldots,{\beta_{i,S}\left( \tau_{H} \right)}} \right\}} = {{u_{S}\left\lbrack {p_{S}\left( \tau_{1} \right)} \right\rbrack} - {\sum\limits_{i = 1}^{m}\left\{ {{e_{i,S}\left\lbrack {D_{i,S}\left( \tau_{1} \right)} \right\rbrack} + {p_{i,S}^{f}\left\lbrack {D_{i,S}\left( \tau_{1} \right)} \right\rbrack}} \right\}} + {E_{{\xi_{S}(\tau_{h})}|_{{\xi_{S}(\tau_{h - 1})}|}}{\sum\limits_{h = 2}^{H}{u_{S}\left\lbrack {p_{S}\left( \tau_{h} \right)} \right\rbrack}}} - {E_{{\xi_{S}(\tau_{h})}|_{{\xi_{S}(\tau_{h - 1})}|}}{\sum\limits_{i = 1}^{m}{\sum\limits_{h = 2}^{H}{e_{i,S}\left\lbrack {{D_{i,S}\left( \tau_{h} \right)},{T_{i,S}^{st}\left( \tau_{h} \right)},{T_{i,S}^{wt}\left( \tau_{h} \right)}} \right\rbrack}}}}}$ and constraints comprise: ${{{p_{i,S}\left( \tau_{h} \right)} \geq 0},\ {\tau_{h} \in H},{{E_{\xi_{s}}\left\{ {\sum\limits_{h = 1}^{H}\left\lbrack {{T_{i,S}^{up}\left( \tau_{h} \right)} + {T_{i,S}^{wt}\left( \tau_{h} \right)} + {\sum\limits_{l_{k} \in L_{k}}\frac{{D_{i}\left( \tau_{h} \right)}\gamma_{i}}{\beta_{i,l_{k}}}}} \right.} \right\}} \leq \tau_{i}^{d}},{and}}{{\beta_{l_{S}}^{m\overset{˙}{m}} \leq {\beta_{i,l_{S}}\left( \tau_{h} \right)} \leq \beta_{l_{S}}^{\max}},{{\tau_{h} \in H};}}$ where f_(i,L)(τ_(h)) represents a CPU clock frequency set of an i-th device in a sub-time slot τ_(h), D_(i,k)(τ_(h)) represents a offloading task set of an i-th mobile device in the sub-time slot τ_(h), u_(i)[D_(i)(τ_(l))] represents a utility of the i-th mobile device in a root node, c_(i)[D_(i)(T₁)] represents a communication cost of the i-th mobile device in the root node, e_(i,L)[D_(i)(τ₁)] represents an energy consumption cost of the i-th mobile device in the root node, S_(i)[D_(i)(τ₁)] represents a computation service cost of the i-th mobile device in the root node, T_(i,S) ^(st)(τ_(h)) represents a dwell time period of the i-th mobile device in the small base station in the sub-time slot τ_(h), D_(i)(τ_(h)) represents a processed task of the i-th mobile device in the sub-time slot τ_(h), f_(i,L)(τ_(h)) represent a local computation frequency of the i-th mobile device in the sub-time slot τ_(h); Q_(i)(τ_(h)) represents a task queue backlog in the sub-time slot τ_(h), ξ_(i,S) ^(st)(τ_(h)) represents a dwell time period in the sub-time slot τ_(h), and A_(i)(τ₁) represents a task arriving at the i-th mobile device in the root node.
 9. The distributed computation offloading method according to claim 1, wherein the optimal strategy of the device is obtained based on the Lagrangian multiplier and the KKT condition by using the following equations: ${{{{f_{i,L}^{*}(t)} = {\left( {\frac{\rho_{i}}{{A_{L} \cdot \ln}2} - 1} \right)\frac{\gamma_{i}}{\tau_{i}^{d}}}},{t \in T},{and}}}{{{D_{i,k}^{*}(t)} = {\frac{\rho_{i}}{{A_{k} \cdot \ln}2} - 1}},{k \in \left\{ {M,S} \right\}},{{t \in \tau};{and}}}$ the optimal quotation strategy of the MEC server to the device is obtained based on the Lagrangian multiplier and the KKT condition by using the following equation: ${{p_{i,k}^{*}(t)} = {{2\lambda_{k}k_{l_{k}}\frac{{D_{i,k}^{*}(t)}\gamma_{i}^{2}}{T_{i,k}^{pt}}} - \frac{D_{i,k}^{*}(t)}{\Theta_{k}}}};$ where, f*_(i,L)(t) represents an optimal local computation frequency, ρ_(i) represents a utility weight parameter of an i-th mobile user, A_(L) represents a locally arriving task set, γ_(i) represents a computation density in cycles/bit obtained by performing an offline measurement, τ_(i) ^(d) represents a maximum computation delay constraint of D_(i)(t), D*_(i,k)(t) represents an optimal offloading strategy, p*_(i,k)(t) represents an optimal quotation strategy of a base station, λ_(k) represents a unit energy consumption, k_(l) _(k) represents an effective switching capacitance in the MEC server, D*_(i,k)(t) represents an optimal offloading strategy, T_(i,k) ^(pt) represents a processing time period for offloading a task, and ${\Theta_{k} = \frac{\partial{D_{i,k}^{*}(t)}}{\partial{p_{i,k}(t)}}},{k \in \left\{ {M,S} \right\}}$  represents a first-order derivative of the optimal offloading strategy to a quotation. 